cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-6 of 6 results.

A217843 Numbers which are the sum of one or more consecutive nonnegative cubes.

Original entry on oeis.org

0, 1, 8, 9, 27, 35, 36, 64, 91, 99, 100, 125, 189, 216, 224, 225, 341, 343, 405, 432, 440, 441, 512, 559, 684, 729, 748, 775, 783, 784, 855, 1000, 1071, 1196, 1241, 1260, 1287, 1295, 1296, 1331, 1584, 1728, 1729, 1800, 1925, 1989, 2016, 2024, 2025, 2197
Offset: 1

Views

Author

T. D. Noe, Oct 23 2012

Keywords

Comments

Contains A000578 (cubes), A005898 (two consecutive cubes), A027602 (three consecutive cubes), A027603 (four consecutive cubes) etc. - R. J. Mathar, Nov 04 2012
See A265845 for sums of consecutive positive cubes in more than one way. - Reinhard Zumkeller, Dec 17 2015
From Lamine Ngom, Apr 15 2021: (Start)
a(n) can always be expressed as the difference of the squares of two triangular numbers (A000217).
A168566 is the subsequence A000217(n)^2 - 1.
a(n) is also the product of two nonnegative integers whose sum and difference are both promic.
See example and formula sections for details. (End)

Examples

			From _Lamine Ngom_, Apr 15 2021: (Start)
Arrange the positive terms in a triangle as follows:
n\k |   1    2    3    4    5    6    7
----+-----------------------------------
  0 |   1;
  1 |   8,   9;
  2 |  27,  35,  36;
  3 |  64,  91,  99, 100;
  4 | 125, 189, 216, 224, 225;
  5 | 216, 341, 405, 432, 440, 441;
  6 | 343, 559, 684, 748, 775, 783, 784;
Column 1: cubes = A000217(n+1)^2 - A000217(n)^2.
The difference of the squares of two consecutive triangular numbers (A000217) is a cube (A000578).
Column 2: sums of 2 consecutive cubes (A027602).
Column 3: sums of 3 consecutive cubes (A027603).
etc.
Column k: sums of k consecutive cubes.
Row n: A000217(n)^2 - A000217(m)^2, m < n.
T(n,n) = A000217(n)^2 (main diagonal).
T(n,n-1) = A000217(n)^2 - 1 (A168566) (2nd diagonal).
Now rectangularize this triangle as follows:
n\k |   1    2     3     4    5     6   ...
----+--------------------------------------
  0 |   1,   9,   36,  100,  225,  441, ...
  1 |   8,  35,   99,  224,  440,  783, ...
  2 |  27,  91,  216,  432,  775, 1287, ...
  3 |  64, 189,  405,  748, 1260, 1989, ...
  4 | 125, 341,  684, 1196, 1925, 2925, ...
  5 | 216, 559, 1071, 1800, 2800, 4131, ...
  6 | 343, 855, 1584, 2584, 3915, 5643, ...
The general form of terms is:
T(n,k) = [n^4 + A016825(k)*n^3 + A003154(k)*n^2 + A300758(k)*n]/4, sum of n consecutive cubes after k^3.
This expression can be factorized into [n*(n + A005408(k))*(n*(n + A005408(k)) + 4*A000217(k))]/4.
For k = 1, the sequence provides all cubes: T(n,1) = A000578(k).
For k = 2, T(n,2) = A005898(k), centered cube numbers, sum of two consecutive cubes.
For k = 3, T(n,3) = A027602(k), sum of three consecutive cubes.
For k = 4, T(n,4) = A027603(k), sum of four consecutive cubes.
For k = 5, T(n,5) = A027604(k), sum of five consecutive cubes.
T(n,n) = A116149(n), sum of n consecutive cubes after n^3 (main diagonal).
For n = 0, we obtain the subsequence T(0,k) = A000217(n)^2, product of two numbers whose difference is 0*1 (promic) and sum is promic too.
For n = 1, we obtain the subsequence T(1,k) = A168566(x), product of two numbers whose difference is 1*2 (promic) and sum is promic too.
For n = 2, we obtain the subsequence T(2,k) = product of two numbers whose difference is 2*3 (promic) and sum is promic too.
etc.
For n = x, we obtain the subsequence formed by products of two numbers whose difference is the promic x*(x+1) and sum is promic too.
Consequently, if m is in the sequence, then m can be expressed as the product of two nonnegative integers whose sum and difference are both promic. (End)
		

Crossrefs

Cf. A265845 (subsequence).
Cf. A000217 (triangular numbers), A046092 (4*A000217).
Cf. A168566 (A000217^2 - 1).
Cf. A002378 (promics), A016825 (singly even numbers), A003154 (stars numbers).
Cf. A000330 (square pyramidal numbers), A300758 (12*A000330).
Cf. A005408 (odd numbers).

Programs

  • Haskell
    import Data.Set (singleton, deleteFindMin, insert, Set)
    a217843 n = a217843_list !! (n-1)
    a217843_list = f (singleton (0, (0,0))) (-1) where
       f s z = if y /= z then y : f s'' y else f s'' y
                  where s'' = (insert (y', (i, j')) $
                               insert (y' - i ^ 3 , (i + 1, j')) s')
                        y' = y + j' ^ 3; j' = j + 1
                        ((y, (i, j)), s') = deleteFindMin s
    -- Reinhard Zumkeller, Dec 17 2015, May 12 2015
    
  • Mathematica
    nMax = 3000; t = {0}; Do[k = n; s = 0; While[s = s + k^3; s <= nMax, AppendTo[t, s]; k++], {n, nMax^(1/3)}]; t = Union[t]
  • PARI
    lista(nn) = {my(list = List([0])); for (i=1, nn, my(s = 0); forstep(j=i, 1, -1, s += j^3; if (s > nn^3, break); listput(list, s););); Set(list);} \\ Michel Marcus, Nov 13 2020

Formula

a(n) >> n^2. Probably a(n) ~ kn^2 for some k but I cannot prove this. - Charles R Greathouse IV, Aug 07 2013
a(n) is of the form [x*(x+2*k+1)*(x*(x+2*k+1)+2*k*(k+1))]/4, sum of n consecutive cubes starting from (k+1)^3. - Lamine Ngom, Apr 15 2021

Extensions

Name edited by N. J. A. Sloane, May 24 2021

A265845 Numbers that are sums of consecutive (positive) cubes in more than one way.

Original entry on oeis.org

216, 8000, 33075, 64000, 89559, 105525, 164800, 188784, 189189, 216000, 343000, 353241, 443456, 608391, 1271600, 2370816, 3132116, 3132675, 3184236, 5821200, 5832000, 9018000, 9769375, 11437525, 20793591, 22153600, 24359616, 28685440, 35937000, 47651373
Offset: 1

Views

Author

Reinhard Zumkeller, Dec 16 2015

Keywords

Comments

A131643 (cubes that are also sums of three or more consecutive positive cubes) is a sparse subsequence: only 17 of its terms appear in the first 1000 terms of A265845. - Jonathan Sondow, Jan 10 2016

Examples

			a(1) = 216 = 6^3 = 3^3 + 4^3 + 5^3;
a(2) = 8000 = 20^3 = 11^3 + 12^3 + 13^3 + 14^3;
a(3) = 33075 = 11^3 + 12^3 + 13^3 + 14^3 + 15^3 + 16^3 + 17^3 + 18^3 + 19^3 = 15^3 + 16^3 + 17^3 + 18^3 + 19^3 + 20^3.
		

Crossrefs

Subsequence of A217843; subsequences: A000578, A005898, A027602, A027603, A062682.
Supersequence of A131643.

Programs

  • Haskell
    import Data.Set (singleton, deleteFindMin, insert, Set)
    a265845 n = a265845_list !! (n-1)
    a265845_list = f (singleton (1, (1, 1))) 0 0 where
       f s z z' = if y == z && z' /= z then y : f s'' y z else f s'' y z
                  where s'' = (insert (y', (i, j')) $
                               insert (y' - i ^ 3 , (i + 1, j')) s')
                        y' = y + j' ^ 3; j' = j + 1
                        ((y, (i, j)), s') = deleteFindMin s

A097811 Numbers n such that n^3 is the sum of three or more consecutive positive cubes.

Original entry on oeis.org

6, 20, 40, 60, 70, 180, 330, 540, 1155, 1581, 2805, 2856, 3876, 5544, 16830, 27060, 62244, 82680, 90090, 175440, 237456, 249424, 273819, 413820, 431548, 534660, 860706, 1074744, 1205750, 1306620, 1630200, 1764070, 1962820, 1983150
Offset: 1

Views

Author

T. D. Noe, Aug 25 2004; Sep 07 2004

Keywords

Comments

These numbers were found by exhaustive search. The sums are not unique; for n=2856, there are two representations. The Mathematica code prints n, the range of cubes in the sum and the number of cubes in the sum. For instance, 82680^3 equals the sum of 6591 cubes! A faster program was used to check all sums s of consecutive cubes such that s < 2000000^3.
2856^3 is the only cube < 2*10^23 that is a sum in two different ways. 2856^3 = 213^3 +...+ 555^3 = 273^3 +...+ 560^3. - Donovan Johnson, Feb 22 2011
The terms of this sequence tend to contain only small primes. Is a(n)^(1/3) an upper bound for the largest prime factor of a(n)? - Ralf Stephan, May 22 2013
Note that by Fermat's theorem no cube is the sum of two positive cubes.
The cubes of the terms form a subsequence of A265845 (numbers that are sums of consecutive positive cubes in more than one way) which is sparse: among the first 1000 terms of A265845, only 17 are cubes. - Jonathan Sondow, Jan 10 2016

Examples

			20 is in this sequence because 11^3 + 12^3 + 13^3 + 14^3 = 20^3.
		

Crossrefs

Cf. A097812 (n^2 is the sum of consecutive squares), A265845.
See A131643 for the actual cubes.

Programs

  • Mathematica
    g[m0_, m1_] := (m1-m0+1)(m0+m1)(m0^2+m1^2+m1-m0)/4; lst={}; Do[n=g[m0, m1]^(1/3); If[IntegerQ[n], Print[{n, m0, m1, m1-m0+1}]; AppendTo[lst, n]], {m1, 2, 14000}, {m0, m1-1, 1, -1}]; Union[lst]

Formula

a(n) = A131643(n)^(1/3). - Jonathan Sondow, Jan 10 2016

Extensions

Name edited by Altug Alkan, Dec 07 2015

A265377 Sums of two or more consecutive positive cubes.

Original entry on oeis.org

9, 35, 36, 91, 99, 100, 189, 216, 224, 225, 341, 405, 432, 440, 441, 559, 684, 748, 775, 783, 784, 855, 1071, 1196, 1241, 1260, 1287, 1295, 1296, 1584, 1729, 1800, 1925, 1989, 2016, 2024, 2025, 2241, 2331, 2584, 2800, 2925, 2989, 3016, 3024, 3025, 3059, 3060
Offset: 1

Views

Author

Robert Israel, Dec 07 2015

Keywords

Comments

All numbers of the form A000537(b) - A000537(a) for 0 <= a <= b-2.
A217843 minus (A000578 minus A131643).
n is in the sequence iff n = s*t where (s+t)/2 = A000217(u) and (s-t)/2 = A000217(v) with u-v >= 2.
If a(k(n)) = A000537(n+1), k(n) >= A000217(n) for n > 0. - Altug Alkan, Dec 07 2015
See A062682 for sums of two or more consecutive positive cubes in more than one way. - Reinhard Zumkeller, Dec 16 2015

Examples

			a(1) = 1^3 + 2^3 = 9.
a(2) = 2^3 + 3^3 = 35.
a(3) = 1^3 + 2^3 + 3^3 = 36.
		

Crossrefs

Subset of A217843.
Cf. A062682 (subsequence).

Programs

  • Haskell
    import Data.Set (singleton, deleteFindMin, insert, Set)
    a265377 n = a265377_list !! (n-1)
    a265377_list = f (singleton (1 + 2^3, (1, 2))) (-1) where
       f s z = if y /= z then y : f s'' y else f s'' y
                  where s'' = (insert (y', (i, j')) $
                               insert (y' - i ^ 3 , (i + 1, j')) s')
                        y' = y + j' ^ 3; j' = j + 1
                        ((y, (i, j)), s') = deleteFindMin s
    -- Reinhard Zumkeller, Dec 17 2015
  • Maple
    amin:= proc(b,N) local r;
      r:= b^2*(b+1)^2 - 4*N; if r > 0 then iroot(r,4) else 1 fi
    end proc:
    A265377:= proc(N) # to get all terms <= N
      local  a,b;
      sort(convert(select(`<=`,{seq(seq(b^2*(b+1)^2/4 - a^2*(a-1)^2/4,
           a = amin(b,N) .. b-1), b=2..1+iroot(floor(N/2),3))},N),list))
    end proc:
    A265377(10000);
  • Mathematica
    With[{nn=12},Select[Sort[Flatten[Table[Total/@Partition[Range[nn]^3,n,1],{n,2,nn}]]],#<=((nn(nn+1))/2)^3&]] (* Harvey P. Dale, Dec 25 2015 *)

A136312 Cubes that are the sum of two or more consecutive positive squares.

Original entry on oeis.org

103823, 274625, 781229961, 10091699281, 22425768000, 1853614522304, 2277044900416, 4708686519081, 6168761704000, 82312875000000, 235125028708361, 259266910222125, 269648738245125, 291658484677013, 980893000925279, 1568173521032000, 1816249897646729
Offset: 1

Views

Author

Donovan Johnson, Mar 23 2008

Keywords

Examples

			From _Donovan Johnson_, Aug 02 2013: (Start)
103823 = 47^3 = 22^2 +...+ 68^2
274625 = 65^3 = 90^2 +...+ 115^2
781229961 = 921^3 = 2115^2 +...+ 2276^2
10091699281 = 2161^3 = 989^2 +...+ 3149^2
22425768000 = 2820^3 = 261^2 +...+ 4067^2
1853614522304 = 12284^3 = 23017^2 +...+ 26087^2
2277044900416 = 13156^3 = 17354^2 +...+ 22930^2
4708686519081 = 16761^3 = 24978^2 +...+ 30971^2
6168761704000 = 18340^3 = 125090^2 +...+ 125482^2
82312875000000 = 43500^3 = 83868^2 +...+ 94235^2
235125028708361 = 61721^3 = 24079^2 +...+ 89600^2
259266910222125 = 63765^3 = 64791^2 +...+ 101632^2
269648738245125 = 64605^3 = 248058^2 +...+ 252364^2
291658484677013 = 66317^3 = 189432^2 +...+ 197233^2
980893000925279 = 99359^3 = 45450^2 +...+ 144808^2
1568173521032000 = 116180^3 = 239806^2 +...+ 264454^2
1816249897646729 = 122009^3 = 279608^2 +...+ 301138^2 (End)
From _Chai Wah Wu_, Jan 16 2016: (Start)
3164933091345661 = 146821^3 = 77289^2 +...+ 215130^2
4047882458821811 = 159371^3 = 84755^2 +...+ 233631^2
17609483239992125 = 260165^3 = 254786^2 +...+ 410884^2
19593033022705472 = 269588^3 = 250354^2 +...+ 420721^2
31231769524613559 = 314919^3 = 927208^2 +...+ 962198^2
65514186944297000 = 403130^3 = 1033993^2 +...+ 1091959^2
143956092348157375 = 524095^3 = 1015471^2 +...+ 1139347^2
329053482838576341 = 690381^3 = 52911^2 +...+ 995751^2
538042267367704000 = 813340^3 = 733892^2 +...+ 1261891^2
566038214864690329 = 827209^3 = 2312937^2 +...+ 2414242^2
656781041834164521 = 869241^3 = 772114^2 +...+ 1344540^2
958188654740652544 = 985864^3 = 838168^2 +...+ 1512983^2
1741057552217028375 = 1203015^3 = 2665648^2 +...+ 2891070^2
2453606982838035081 = 1348761^3 = 2465960^2 +...+ 2817081^2
7324939312836848704 = 1942084^3 = 772001^2 +...+ 2820383^2
31128405637777584128 = 3145712^3 = 12484417^2 +...+ 12681023^2
47930487637898407256 = 3632486^3 = 7350251^2 +...+ 8147761^2
57859343297173518625 = 3867745^3 = 37789066^2 +...+ 37829539^2
58047677333527653953 = 3871937^3 = 12618972^2 +...+ 12973453^2
95340837894501722977 = 4568353^3 = 2089689^2 +...+ 6658041^2
115237534945436189000 = 4866290^3 = 530792^2 +...+ 7019416^2
192722849299621656989 = 5776229^3 = 6484162^2 +...+ 9475619^2
357785493772998213000 = 7099170^3 = 7766186^2 +...+ 11552409^2
595861293215117277369 = 8414889^3 = 17896962^2 +...+ 19591724^2
1040700726329018473909 = 10133869^3 = 26869573^2 +...+ 28239958^2
2330938094537294907904 = 13258984^3 = 2662775^2 +...+ 19139958^2
5464432352858170025529 = 17613609^3 = 31917186^2 +...+ 36570028^2
6591770507847656234375 = 18749975^3 = 93374626^2 +...+ 94124624^2
(End)
		

Crossrefs

Programs

  • PARI
    find(lim)=my(t,v=List());for(k=2,(3*lim)^(1/3),t=k*(k-1)*(2*k-1)/6;for(n=k,(k-1)/2+sqrt(lim/k-(k^2-1)/12),if(ispower(t+=n^2-(n-k)^2,3),listput(v,t))));vecsort(Vec(v),,8) \\ Charles R Greathouse IV, Jun 11 2011

Extensions

Edited definition and a(11)-a(14) from Donovan Johnson, Oct 01 2010
a(15)-a(16) from Donovan Johnson, Jun 11 2011
a(17) from Donovan Johnson, Aug 02 2013

A307609 Number of partitions of n^3 into consecutive positive cubes.

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Ilya Gutkovskiy, Apr 18 2019

Keywords

Examples

			20^3 = 11^3 + 12^3 + 13^3 + 14^3, so a(20) = 2.
2856^3 = 213^3 +...+ 555^3 = 273^3 +...+ 560^3, so a(2856) = 3. See also _Donovan Johnson_'s comment in A097811. - _Antti Karttunen_, Aug 22 2019
		

Crossrefs

Programs

  • PARI
    A297199(n) = { my(s=0, k=1, c); while((c=k^3) <= n, my(u=n-c, i=k); while(u>0, i++; c = i^3; u=u-c); s += (!u); k++); (s); };
    A307609(n) = A297199(n^3); \\ Antti Karttunen, Aug 22 2019

Formula

a(n) = [x^(n^3)] Sum_{i>=1} Sum_{j>=i} Product_{k=i..j} x^(k^3).
a(n) = A297199(A000578(n)).
a(n) >= 2 for n in A097811.
Showing 1-6 of 6 results.