OFFSET
0,5
COMMENTS
a(0) = 1 is from (0^0)^0 = 1 per A002489.
The author conjectures that this sequence obeys the well-known Benford's law.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Pointless Large numbers stuff by Cookiefonster, 2.03 The Weak Hyper-Operators.
Wikipedia, Benford's law.
EXAMPLE
a(4) = 4, since (4^4)^4 = 4^(4^2) = 4294967296.
MATHEMATICA
A364789[n_] := If[n == 0, 1, First[IntegerDigits[(n^n)^n]]];
Array[A364789, 100, 0] (* Paolo Xausa, Jan 31 2024 *)
PROG
(Python)
def A364789(n): return int(str((n**n)**n)[0]) # Chai Wah Wu, Aug 10 2023
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Marco Ripà, Aug 08 2023
STATUS
approved