Find palindromic numbers in both binary and ternary bases: Difference between revisions

Content added Content deleted
Line 48: Line 48:


L(trial) (b‘’revb, b‘0’revb, b‘1’revb, b‘2’revb)
L(trial) (b‘’revb, b‘0’revb, b‘1’revb, b‘2’revb)
V t = Int64(trial, 3)
V t = Int64(trial, radix' 3)
I pal2(t)
I pal2(t)
r.append(t)
r.append(t)