|
|
|
|
1, 11, 117, 1178, 11787, 117870, 1178701, 11787019, 117870197, 1178701972, 11787019723, 117870197230, 1178701972308, 11787019723085, 117870197230855, 1178701972308551, 11787019723085519, 117870197230855196, 1178701972308551965, 11787019723085519654
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
0 <= a(n)-10*a(n-1)<10
All terms are prefixes of later terms.
|
|
LINKS
|
|
|
EXAMPLE
|
reverse(11^11)=116076113582 =>a(2)=11 reverse(111^111)=117...... =>a(3)=117 reverse(1111^111)=1178....=>a(4)=1178
|
|
MATHEMATICA
|
repunit[n_] := Sum[10^i, {i, 0, n - 1}]; a[n_]:= FromDigits[Reverse[IntegerDigits[repunit[n]^repunit[n]]][[1 ;; n]]]; Table[a[n], {n, 1, 7}]
repunit[n_] := Sum[10^i, {i, 0, n - 1}]; h[n_] := If[(b = (1 +Floor@Log[10, aux = FromDigits@Reverse@IntegerDigits@PowerMod[repunit[n], repunit[n], 10^n]])) < n, aux*10^(n - b), aux] (*Suggested by Jorge Jimenez Meana*) [From José María Grau Ribas, Mar 01 2010]
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|