OFFSET
1,1
COMMENTS
There is no term with 15 digits.
FORMULA
a(n+1) is a suffix of 2^a(n) formed by a nonzero digit followed by a number of zeros and a(n). E.g., a(13)=75353432948736 and 2^a(13) ends with ...15075353432948736, hence a(14)=5075353432948736. - Max Alekseyev, Apr 18 2007
Can be obtained from A109405 by removing all repeats. - Max Alekseyev, May 11 2007
EXAMPLE
2^36 = 68719476736 which ends in 36.
MATHEMATICA
a[1] = 36; a[n_] := a[n] = For[ida = IntegerDigits[a[n-1]]; k = 1, True, k++, idk = IntegerDigits[k]; pm = PowerMod[2, an = FromDigits[Join[idk, ida]], 10^IntegerLength[an]]; If[pm == an, Return[an]]]; Array[a, 20] (* Jean-François Alcover, Feb 15 2018 *)
CROSSREFS
KEYWORD
base,nonn,nice
AUTHOR
Jonathan Ayres (jonathan.ayres(AT)btinternet.com), Oct 08 2001
STATUS
approved