login
A085586
n, n^2 and n^3 all use only even digits.
0
0, 2, 20, 200, 202, 2000, 2002, 2020, 20000, 20002, 20020, 20200, 200000, 200002, 200020, 200200, 202000, 2000000, 2000002, 2000020, 2000200, 2002000, 2020000, 20000000, 20000002, 20000020, 20000200, 20000202, 20002000, 20002002, 20020000
OFFSET
1,2
COMMENTS
Subsequence of A014263 and of A136904. - Michel Marcus, Oct 04 2013
EXAMPLE
202 is a term because 202, 202^2=4008004 and 202^3=8024024008 all use only even digits.
PROG
(PARI) evdigs(n) = {if (n==0, return (1)); digs = digits(n); for (i = 1, #digs, if (digs[i] % 2, return (0)); ); return (1); }
isok(n) = evdigs(n) && evdigs(n^2) && evdigs(n^3); \\ Michel Marcus, Oct 04 2013
CROSSREFS
Cf. A068690.
Sequence in context: A299865 A001253 A303462 * A322298 A136902 A136884
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Jul 06 2003
EXTENSIONS
More terms from Michel Marcus and Jon E. Schoenfield, Oct 04 2013
STATUS
approved