OFFSET
1,3
COMMENTS
This sequence was inspired by the 41st Wohascum County problem.
The distribution of the first 500 terms beginning with 0: 101, 43, 40, 42, 29, 49, 43, 53, 58, 42.
The distribution does not conform to Benford's / Zipf's law, but seems to be evenly distributed once multiples of ten are excluded.
REFERENCES
George T. Gilbert, Mark I. Krusemeyer and Loren C. Larson, The Wohascum County Problem Book, The Mathematical Association of America, Dolciani Mathematical Expositions No. 14, 1993, problem 41 "What is the fifth digit from the end (the ten thousands digit) of the number 5^5^5^5^5?", page 11 and solution on page 76.
Ilan Vardi, "Computational Recreations in Mathematica," Addison-Wesley Publishing Co., Redwood City, CA, 1991, pages 226-229.
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..1000
Robert P. Munafo, Sequence A094358, 2^^N = 1 mod N.
Robert P. Munafo, Hyper4 Iterated Exponential Function.
Robert G. Wilson v, Mathematica coding for "SuperPowerMod" from Vardi.
Wikipedia, Knuth's up-arrow notation.
FORMULA
if n (mod 10) == 0 then a(n) = 0.
MATHEMATICA
(* first load "SuperPowerMod" from Vardi, see link above, and then *) f[n_] := Quotient[ SuperPowerMod[ n, n, 10^n], 10^(n - 1)]; Array[f, 105]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Aug 30 2014
STATUS
approved