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!)
A344876 a(n) = A344875(n) - A011772(n). 7
0, 0, 0, 0, 0, 3, 0, 0, 0, 8, 0, 6, 0, 11, 3, 0, 0, 16, 0, 13, 6, 19, 0, 15, 0, 24, 0, 35, 0, 9, 0, 0, 9, 32, 10, 48, 0, 35, 12, 45, 0, 16, 0, 38, 23, 43, 0, 30, 0, 48, 15, 45, 0, 51, 30, 42, 18, 56, 0, 41, 0, 59, 21, 0, 23, 49, 0, 96, 21, 52, 0, 57, 0, 72, 24, 70, 39, 60, 0, 60, 0, 80, 0, 36, 30, 83, 27, 118, 0, 61, 59, 131 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
COMMENTS
Apparently A000961 gives the positions of zeros.
LINKS
FORMULA
a(n) = A344875(n) - A011772(n).
a(n) >= A344976(n).
MATHEMATICA
A011772[n_] := Module[{m = 1}, While[Not[IntegerQ[m(m+1)/(2n)]], m++]; m];
A344875[n_] := Product[{p, e} = pe; If[p == 2, 2^(1+e)-1, p^e-1], {pe, FactorInteger[n]}];
a[n_] := If[n == 1, 0, A344875[n] - A011772[n]];
Array[a, 100] (* Jean-François Alcover, Jun 12 2021 *)
PROG
(PARI)
A011772(n) = { if(n==1, return(1)); my(f=factor(if(n%2, n, 2*n)), step=vecmax(vector(#f~, i, f[i, 1]^f[i, 2]))); forstep(m=step, 2*n, step, if(m*(m-1)/2%n==0, return(m-1)); if(m*(m+1)/2%n==0, return(m))); }; \\ From A011772
A344875(n) = { my(f=factor(n)~); prod(i=1, #f, (f[1, i]^(f[2, i]+(2==f[1, i]))-1)); };
A344876(n) = (A344875(n)-A011772(n));
CROSSREFS
Cf. also A344763, A344765, A344874.
Sequence in context: A115859 A241663 A344976 * A129170 A342590 A209436
KEYWORD
nonn,look
AUTHOR
Antti Karttunen, Jun 03 2021
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 21 05:34 EDT 2024. Contains 372728 sequences. (Running on oeis4.)