login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Subsequence of A014263 and of A136904. - Michel Marcus, Oct 04 2013
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 09:23 EDT 2024. Contains 371782 sequences. (Running on oeis4.)