The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A118107 Period of the vector sequence d(n)^2^k mod n for k=1,2,3,..., where d(n) is the vector of divisors of n. 2
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 4, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 4, 1, 2, 2, 1, 6, 2, 1, 1, 2, 1, 4, 2, 10, 1, 1, 1, 4, 1, 2, 1, 6, 4, 2, 6, 3, 1, 1, 1, 4, 2, 1, 1, 4, 1, 1, 10, 2, 1, 2, 1, 6, 4, 6, 4, 2, 1, 1, 1, 4, 1, 2, 1, 3, 3, 4, 1, 2, 2, 10, 4, 11, 6, 1, 1, 6, 4, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,14
COMMENTS
This sequence is related to the period of sigma_(2^k)(n) mod n, which is important in studying the numbers n dividing sigma_(2^k)(n) for all k>0. See A066292 and A118076. Note that a(n)=1 if n is a power of a prime.
LINKS
EXAMPLE
See A118106 for an example involving d(n)^k.
MATHEMATICA
Table[d=Divisors[n]; k=0; found=False; While[i=0; While[i<k-1 && !found, i++; found=(dk[i]==dk[k])]; !found, k++; dk[k]=PowerMod[d, 2^k, n]]; k-i, {n, 100}]
PROG
(PARI) A118107(n) = { my(divs=apply(d -> (d%n), divisors(n)), odivs = Vec(divs), vs = Map()); mapput(vs, odivs, 0); for(k=1, oo, divs = vector(#divs, i, (divs[i]*divs[i])%n); if(mapisdefined(vs, divs), return(k-mapget(vs, divs)), mapput(vs, divs, k))); }; \\ Antti Karttunen, Sep 23 2018
CROSSREFS
Cf. A118106 (period of the vector sequence d(n)^k mod n).
Sequence in context: A196056 A161095 A276162 * A236548 A249949 A155798
KEYWORD
nonn
AUTHOR
T. D. Noe, Apr 13 2006
STATUS
approved

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 May 15 02:58 EDT 2024. Contains 372536 sequences. (Running on oeis4.)