OFFSET
1,3
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..100
Eric Weisstein's World of Mathematics, Automorphic Number
Wikipedia, Automorphic number
FORMULA
a(n) = A003226(m) * 10^k for appropriate m and k. [Reinhard Zumkeller, Nov 26 2011]
MATHEMATICA
ssscQ[n_]:=Module[{idn=IntegerDigits[n], sq=IntegerDigits[n^2], cu=IntegerDigits[n^3], len=IntegerLength[n]}, MemberQ[Partition[ sq, len, 1], idn] &&MemberQ[Partition[cu, len, 1], idn]]; Join[{0}, Select[Range[700000], ssscQ]] (* Harvey P. Dale, Apr 24 2011 *)
PROG
(Haskell)
import Data.List (isInfixOf)
a029943 n = a029943_list !! (n-1)
a029943_list = filter f [0..] where
f x = show x `isInfixOf` show (x^2) && show x `isInfixOf` show (x^3)
-- Reinhard Zumkeller, Nov 26 2011
CROSSREFS
KEYWORD
nonn,base,nice
AUTHOR
EXTENSIONS
Offset corrected by Reinhard Zumkeller, Nov 26 2011
STATUS
approved