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!)
A338150 a(n) is the least j >= 2 such that (n+1)^A338136(n) mod n^j is a perfect power > 1. 3
4, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
LINKS
FORMULA
(n+1)^A338136(n) mod n^A338150(n) = A338151(n).
EXAMPLE
a(2) = 4 because A338136(2) = 6 and 3^6 mod 2^4 = 3^2.
a(13) = 2 because A338136(13) = 2 and 14^2 mod 13^2 = 3^3.
MAPLE
g:= proc(n) local k, x, j, F;
for k from 2 to n-2 do
x:= (n+1)^k;
for j from 2 to floor(k*log[n](n+1)) do
F:= ifactors(x mod (n^j))[2];
if igcd(op(map(t -> t[2], F))) > 1 then return j fi
od od
end proc:
g(2):= 4: g(3):= 2:
map(g, [$2..40]);
CROSSREFS
Sequence in context: A136714 A280135 A297825 * A303577 A010314 A080133
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Oct 12 2020
EXTENSIONS
More terms from Jinyuan Wang, Oct 17 2020
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 April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)