OFFSET
0,1
COMMENTS
Conjecture: a(n) == 2 (mod 10).
FORMULA
a(n) = 3*2^n if n mod 4 = 2; 2^(n+2-((n+1) mod 4)) otherwise. - Jon E. Schoenfield, Sep 12 2017
EXAMPLE
a(0) = 2 because 2 is divisible by 2^0 = 1.
a(1) = 2 because 2 is divisible by 2^1 = 2.
a(2) = 12 because 12 is divisible by 2^2 = 4.
MATHEMATICA
Do[k=1; While[!Total[Transpose[IntegerDigits[k][[-1]]>0&&Mod[k, IntegerDigits[k][[-1]]^n]==0&&!Mod[k, 10]==1], k++]]; Print[n, " ", k-1], {n, 0, 25}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Apr 22 2014
STATUS
approved