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!)
A356165 a(n) = n minus the smallest positive k such that n divides k*A003961(k), where A003961 is fully multiplicative with a(p) = nextprime(p). 4
0, 0, 1, 0, 2, 4, 2, 0, 5, 4, 4, 8, 2, 4, 12, 0, 4, 14, 2, 8, 11, 8, 4, 16, 16, 4, 19, 8, 6, 24, 2, 0, 19, 8, 30, 32, 6, 4, 17, 16, 4, 32, 2, 16, 39, 8, 4, 32, 24, 32, 25, 8, 6, 46, 34, 16, 23, 12, 6, 48, 2, 4, 43, 0, 32, 52, 6, 16, 31, 60, 4, 64, 2, 12, 66, 8, 70, 56, 6, 32, 65, 8, 4, 64, 46, 4, 41, 32, 6, 84, 36 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
FORMULA
a(n) = n - A356164(n).
For all odd primes p, a(p) = A001223(A000720(p)-1).
PROG
(PARI)
A003961(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); };
A356165(n) = for(k=1, oo, if((k*A003961(k))%n==0, return(n-k)));
CROSSREFS
Cf. A000079 (positions of zeros), A000720, A001223, A003961, A191002, A356164, A356166.
Cf. also A355945.
Sequence in context: A331144 A258711 A127278 * A366589 A335764 A202069
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 28 2022
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 13 01:02 EDT 2024. Contains 372497 sequences. (Running on oeis4.)