OFFSET
0,5
COMMENTS
Sequence obeys Benford law about distribution of first digits in a sequence: P(n)=Log(1+1/n).
EXAMPLE
a(9)=9 since Tetra(9)=94.
MATHEMATICA
t = {1, 1, 1, 1}; Do[AppendTo[t, t[[-1]] + t[[-2]] + t[[-3]] + t[[-4]]], {100}]; Table[IntegerDigits[i][[1]], {i, t}]
IntegerDigits[#][[1]]&/@LinearRecurrence[{1, 1, 1, 1}, {1, 1, 1, 1}, 120] (* Harvey P. Dale, Nov 08 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Carmine Suriano, Feb 14 2011
EXTENSIONS
Offset changed by Georg Fischer, Jun 26 2024
STATUS
approved