login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A098174 a(n) is the smallest e > 0 such that the initial digit of n^e = 1 in decimal representation. 7

%I #12 Jun 30 2018 07:08:37

%S 1,4,9,2,3,4,5,8,16,1,1,1,1,1,1,1,1,1,1,4,4,3,3,3,3,3,3,5,7,9,25,2,2,

%T 2,2,2,2,2,2,2,2,2,2,2,5,11,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,

%U 5,5,5,5,5,6,6,6,6,7,7,7,8,8,9,9,10,10,11,12,13,14,16,18,20,23,27,32,40,53

%N a(n) is the smallest e > 0 such that the initial digit of n^e = 1 in decimal representation.

%C A000030(n^a(n)) = 1; A098175(n) = n^a(n).

%C From _Rémy Sigrist_, Jun 25 2018: (Start)

%C We can extend this sequence to every Gaussian integers as follows:

%C - 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,

%C - naturally f(n) = a(n) for any n > 0,

%C - apparently f(z) = -1 iff z = 0,

%C - see Links section for the color plot of f.

%C (End)

%H Rémy Sigrist, <a href="/A098174/b098174.txt">Table of n, a(n) for n = 1..10000</a>

%H Rémy Sigrist, <a href="/A098174/a098174.png">Color plot of f(x + i*y) for x = -200..1000 and y = -200..500</a>

%o (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

%Y Cf. A000030, A098175, A131835.

%K nonn,base

%O 1,2

%A _Reinhard Zumkeller_, Aug 30 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 10:56 EDT 2024. Contains 371791 sequences. (Running on oeis4.)