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!)
A024321 a(n) = s(1)*t(n) + s(2)*t(n-1) + ... + s(k)*t(n+1-k), where k = floor((n+1)/2), s = A023531, t = (composite numbers). 17
0, 0, 6, 8, 9, 10, 12, 14, 25, 28, 32, 35, 37, 40, 44, 46, 64, 69, 73, 77, 81, 85, 89, 93, 96, 100, 128, 133, 139, 144, 148, 154, 162, 166, 170, 176, 181, 187, 223, 229, 236, 242, 248, 255, 262, 268, 275, 281, 287, 294, 301, 308, 354, 361, 370, 380, 386, 394, 401, 408, 418, 425 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = Sum_{j=1..floor((n+1)/2)} A023531(j)*A002808(n-j+1). - G. C. Greubel, Jan 19 2022
MATHEMATICA
A023531[n_]:= SquaresR[1, 8n+9]/2;
Composite[n_]:= FixedPoint[n +PrimePi[#] +1 &, n];
a[n_]:= Sum[A023531[j]*Composite[n-j+1], {j, Floor[(n+1)/2]}];
Table[a[n], {n, 70}] (* G. C. Greubel, Jan 19 2022 *)
PROG
(Magma)
A002808:= [n : n in [2..100] | not IsPrime(n) ];
A023531:= func< n | IsIntegral( (Sqrt(8*n+9) -3)/2 ) select 1 else 0 >;
[ (&+[A023531(j)*A002808[n-j+1]: j in [1..Floor((n+1)/2)]]) : n in [1..70]]; // G. C. Greubel, Jan 19 2022
(Sage)
A002808 = [n for n in (1..250) if sloane.A001222(n) > 1]
def A023531(n):
if ((sqrt(8*n+9) -3)/2).is_integer(): return 1
else: return 0
[sum( A023531(j)*A002808[n-j] for j in (1..floor((n+1)/2)) ) for n in (1..70)] # G. C. Greubel, Jan 19 2022
CROSSREFS
Sequence in context: A070162 A030550 A048751 * A161186 A102106 A175821
KEYWORD
nonn
AUTHOR
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 06:21 EDT 2024. Contains 372498 sequences. (Running on oeis4.)