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!)
A129965 Triangular numbers that are the difference of nonnegative cubes. 1
0, 1, 91, 4095, 5886, 7875, 8128, 8911, 9045, 17955, 21736, 23653, 47278, 93961, 115921, 130816, 184528, 259560, 379756, 488566, 575128, 658378, 758296, 810901, 873181, 885115, 1060696, 1155960, 1358776, 1385280, 1997001, 2616328, 2685403 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..439 (terms <= 10^12)
EXAMPLE
A000217(13) = Sum_{k=1..13} k = 91 = 216 - 125 = 6^3 - 5^3, so 91 is in the sequence. - Peter Munn, Dec 05 2022
MAPLE
M:= 10^7: # for terms <= M
S:= {0}:
for x from 1 while 3*x^2 - 3*x + 1 < M do
if x^3 < M then Y:= 0 else Y:= ceil(x^3-M) fi;
S:= S union select(t -> issqr(1+8*t), {seq(x^3 - y^3, y = Y .. x-1)});
od:
sort(convert(S, list)); # Robert Israel, Dec 05 2023
MATHEMATICA
With[{n = 5000}, Intersection[(#1*((#1 + 1)/2) & ) /@ Range[0, n], Flatten[Outer[ #1^3 - #2^3 &, Range[n], Range[0, n - 1]]]]]
CROSSREFS
Intersection of A000217 and A152043.
Sequence in context: A169937 A047697 A096054 * A017807 A017754 A283383
KEYWORD
nonn
AUTHOR
Peter Pein (petsie(AT)dordos.net), Jun 13 2007, Jun 14 2007
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 April 20 03:59 EDT 2024. Contains 371798 sequences. (Running on oeis4.)