A154588 Numbers that can be expressed as the sum of the first j integer numbers or the first k nonprime numbers, with j and k >=1.
1, 28, 435, 10296, 415416, 1062153, 3703281, 426626655, 782002378, 102886232631, 1636197988776, 2749764593278, 61972139524851, 813577626225078, 1604393353172781, 3603538956517305, 44000970048906445, 83556903098276790, 208955344344897381
Offset: 1
Keywords
Examples
28 = A000217(7) = A051349(5). 435 = A000217(19) = A051349(23). 10296 = A000217(143) = A051349(123).
Programs
-
Mathematica
Module[{nn=10^7,np},np=Select[Range[nn],!PrimeQ[#]&];Intersection[Accumulate[Range[ nn]],Accumulate[ np]]] (* The program generates the first 12 terms of the sequence. *) (* Harvey P. Dale, Feb 08 2024 *)
Formula
Extensions
10256 replaced with 10296 and two more terms added by R. J. Mathar, Jan 21 2009
Extended beyond a(9) by Donovan Johnson, Sep 11 2009
Comments