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.

A255018 Smallest number that is the sum of 3 nonnegative cubes in exactly n ways.

This page as a plain text file.
%I A255018 #34 May 09 2021 11:17:57
%S A255018 4,0,216,5104,13896,161568,1259712,2016496,2562624,14926248,58995000,
%T A255018 34012224,150547032,471960000,119095488,1259712000,952763904,
%U A255018 5159780352,3974344704,2176782336,10077696000,2985984000,36330467328,30723115968,23887872000,17414258688,72825163776,75686967000
%N A255018 Smallest number that is the sum of 3 nonnegative cubes in exactly n ways.
%e A255018 a(0) = 4 because the smallest number that cannot be represented as a sum of 3 nonnegative cubes is 4.
%e A255018 a(1) = 0 is the sum of three 0's.
%e A255018 a(2) = 216 = 3^3 + 4^3 + 5^3 = 6^3 + 0 + 0.
%e A255018 a(3) = 5104 = 1 + 12^3 + 15^3 = 2^3 + 10^3 + 16^3 = 9^3 + 10^3 + 15^3.
%o A255018 (Python)
%o A255018 TOP = 6000000
%o A255018 a = [0]*TOP
%o A255018 for b in range(TOP):
%o A255018   b3 = b**3
%o A255018   if b3*3>=TOP: break
%o A255018   for c in range(b,TOP):
%o A255018     c3 = b3 + c**3
%o A255018     if c3>=TOP: break
%o A255018     for d in range(c,TOP):
%o A255018       res = c3 + d**3
%o A255018       if res>=TOP: break
%o A255018       a[res] += 1
%o A255018 m = max(a)
%o A255018 r = [-1] * (m+1)
%o A255018 for i in range(TOP):
%o A255018     if r[a[i]]==-1:  r[a[i]]=i
%o A255018 print(r)
%Y A255018 Cf. A000578, A000446, A011541, A025418, A025419.
%K A255018 nonn
%O A255018 0,1
%A A255018 _Alex Ratushnyak_, Feb 25 2015
%E A255018 More terms from _Rémy Sigrist_, Jul 14 2020