OFFSET
1,2
COMMENTS
From Rémy Sigrist, Jun 25 2018: (Start)
We can extend this sequence to every Gaussian integers as follows:
- for any Gaussian integer z, let f(z) be the least k > 0 such that the initial decimal digit of the real part of z^k equals 1, or -1 if no such k exists,
- naturally f(n) = a(n) for any n > 0,
- apparently f(z) = -1 iff z = 0,
- see Links section for the color plot of f.
(End)
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
PROG
(PARI) a(n, base=10) = my (nk=n); for (k=1, oo, my (z); logint(nk, base, &z); if (nk\z==1, return (k), nk*=n)) \\ Rémy Sigrist, Jun 21 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Aug 30 2004
STATUS
approved