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.

A025397 Numbers that are the sum of 3 positive cubes in exactly 3 ways.

Original entry on oeis.org

5104, 9729, 12104, 12221, 12384, 14175, 17604, 17928, 19034, 20691, 21412, 21888, 24480, 28792, 29457, 30528, 31221, 32850, 34497, 35216, 36288, 38259, 39339, 39376, 40060, 40097, 40832, 40851, 41033, 41040, 41364, 41966, 42056, 42687, 43408, 45144
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Maple
    N:= 10^5: # to get all terms <= N
    Reps:= Matrix(N,3,(i,j) -> {}):
    for i from 1 to floor(N^(1/3)) do
      Reps[i^3,1]:= {[i]}
    od:
    for j from 2 to 3 do
    for i from 1 to floor(N^(1/3)) do
      for x from i^3+1 to N do
        Reps[x,j]:= Reps[x,j] union
          map(t -> if t[-1] <= i then [op(t),i] fi, Reps[x-i^3,j-1]);
      od
    od
    od:
    select(t -> nops(Reps[t,3])=3, [$1..N]); # Robert Israel, Aug 28 2015
  • Mathematica
    Reap[ For[ n = 1, n <= 50000, n++, pr = Select[ PowersRepresentations[n, 3, 3], Times @@ # != 0 &]; If[pr != {} && Length[pr] == 3, Print[n, pr]; Sow[n]]]][[2, 1]] (* Jean-François Alcover, Jul 31 2013 *)
  • PARI
    is(n)=k=ceil((n-2)^(1/3)); d=0; for(a=1, k, for(b=a, k, for(c=b, k, if(a^3+b^3+c^3==n, d++)))); d
    n=3; while(n<50000, if(is(n)==3, print1(n, ", ")); n++) \\ Derek Orr, Aug 27 2015

Formula

n such that A025456(n) = 3. - Robert Israel, Aug 28 2015

A343968 Numbers that are the sum of three positive cubes in four or more ways.

Original entry on oeis.org

13896, 40041, 44946, 52200, 53136, 58995, 76168, 82278, 93339, 94184, 105552, 110683, 111168, 112384, 112832, 113400, 143424, 149416, 149904, 161568, 167616, 169560, 171296, 175104, 196776, 197569, 208144, 216126, 221696, 222984, 224505, 235808, 240813, 252062, 255312, 262683, 262781, 266031
Offset: 1

Views

Author

David Consiglio, Jr., May 05 2021

Keywords

Examples

			44946 =  7^3 + 12^3 + 35^3
      =  9^3 + 17^3 + 34^3
      = 11^3 + 24^3 + 31^3
      = 16^3 + 17^3 + 33^3
so 44946 is a term.
		

Crossrefs

Programs

  • Python
    from itertools import combinations_with_replacement as cwr
    from collections import defaultdict
    keep = defaultdict(lambda: 0)
    power_terms = [x**3 for x in range(1,50)]
    for pos in cwr(power_terms,3):
        tot = sum(pos)
        keep[tot] += 1
    rets = sorted([k for k,v in keep.items() if v >= 4])
    for x in range(len(rets)):
        print(rets[x])

A343972 Numbers that are the sum of four positive cubes in exactly four ways.

Original entry on oeis.org

1979, 2737, 3663, 4384, 4445, 4474, 4949, 5257, 5320, 5473, 5499, 5553, 5733, 5768, 5833, 5852, 6064, 6104, 6328, 6372, 6587, 6643, 6832, 6912, 6974, 7000, 7030, 7120, 7217, 7371, 7560, 7686, 7840, 8099, 8108, 8281, 8316, 8344, 8379, 8414, 8505, 8568, 8927, 9016, 9018, 9044, 9072, 9100, 9289, 9548, 9648, 9800
Offset: 1

Views

Author

David Consiglio, Jr., May 05 2021

Keywords

Comments

This sequence varies from A343971 at term 8 because 5105 = 1^3 + 1^3 + 12^3 + 15^3 = 1^3 + 2^3 + 10^3 + 16^3 = 1^3 + 9^3 + 10^3 + 15^3 = 4^3 + 4^3 + 4^3 + 17^3 = 4^3 + 6^3 + 9^3 + 16^3.

Examples

			3663 is a term because 3663 = 1^3 + 10^3 + 11^3 + 11^3 = 2^3 + 4^3 + 6^3 + 15^3 = 2^3 + 9^3 + 9^3 + 13^3 = 4^3 + 7^3 + 8^3 + 14^3.
		

Crossrefs

Programs

  • Python
    from itertools import combinations_with_replacement as cwr
    from collections import defaultdict
    keep = defaultdict(lambda: 0)
    power_terms = [x**3 for x in range(1,50)]
    for pos in cwr(power_terms,4):
        tot = sum(pos)
        keep[tot] += 1
    rets = sorted([k for k,v in keep.items() if v == 4])
    for x in range(len(rets)):
        print(rets[x])

A343970 Numbers that are the sum of three positive cubes in exactly five ways.

Original entry on oeis.org

161568, 262683, 314712, 326808, 359568, 443197, 444536, 471960, 503208, 513729, 515376, 526023, 529199, 532683, 552824, 597960, 702729, 736371, 746992, 806688, 844416, 863379, 907479, 924048, 931419, 975213, 1011067, 1028663, 1062937, 1092853, 1152152, 1172016, 1211048, 1232496, 1258011
Offset: 1

Views

Author

David Consiglio, Jr., May 05 2021

Keywords

Comments

This sequence differs from A343967 at term 40 because 1296378 = 3^3 + 76^3 + 95^3 = 9^3 + 33^3 + 108^3 = 21^3 + 77^3 + 94^3 = 31^3 + 59^3 + 102^3 = 33^3 + 81^3 + 90^3 = 60^3 + 75^3 + 87^3.

Crossrefs

Programs

  • Python
    from itertools import combinations_with_replacement as cwr
    from collections import defaultdict
    keep = defaultdict(lambda: 0)
    power_terms = [x**3 for x in range(1,50)]
    for pos in cwr(power_terms,3):
        tot = sum(pos)
        keep[tot] += 1
    rets = sorted([k for k,v in keep.items() if v == 5])
    for x in range(len(rets)):
        print(rets[x])

A344278 Numbers that are the sum of three fourth powers in exactly four ways.

Original entry on oeis.org

5978882, 15916082, 20621042, 22673378, 30623138, 33998258, 39765362, 48432482, 53809938, 61627202, 65413922, 74346818, 84942578, 88258898, 95662112, 103363442, 117259298, 128929682, 131641538, 137149922, 143244738, 155831858, 158811842, 167042642, 174135122, 175706258, 188529362
Offset: 1

Views

Author

David Consiglio, Jr., May 13 2021

Keywords

Comments

Differs from A344277 at term 37 because 292965218 = 2^4 + 109^4 + 111^4 = 21^4 + 98^4 + 119^4 = 27^4 + 94^4 + 121^4 = 34^4 + 89^4 + 123^4 = 49^4 + 77^4 + 126^4 = 61^4 + 66^4 + 127^4

Examples

			20621042 is a member of this sequence because 20621042 = 5^4 + 54^4 + 59^4 = 10^4 + 51^4 + 61^4 = 25^4 + 46^4 + 63^4 = 26^4 + 39^4 + 65^4
		

Crossrefs

Programs

  • Python
    from itertools import combinations_with_replacement as cwr
    from collections import defaultdict
    keep = defaultdict(lambda: 0)
    power_terms = [x**4 for x in range(1,50)]
    for pos in cwr(power_terms,3):
        tot = sum(pos)
        keep[tot] += 1
    rets = sorted([k for k,v in keep.items() if v == 4])
    for x in range(len(rets)):
        print(rets[x])

A345865 Numbers that are the sum of two cubes in exactly four ways.

Original entry on oeis.org

6963472309248, 12625136269928, 21131226514944, 26059452841000, 55707778473984, 74213505639000, 95773976104625, 101001090159424, 159380205560856, 169049812119552, 174396242861568, 188013752349696, 208475622728000, 300656502205416, 340878679288056
Offset: 1

Views

Author

David Consiglio, Jr., Jul 05 2021

Keywords

Comments

Differs from A023051 at term 143 because 48988659276962496 = 331954^3 + 231518^3 = 336588^3 + 221424^3 = 342952^3 + 205292^3 = 362753^3 + 107839^3 = 365757^3 + 38787^3.

Examples

			12625136269928 is a term because 12625136269928 = 21869^3 + 12939^3 = 22580^3 + 10362^3 = 23066^3 + 7068^3 = 23237^3 + 4275^3.
		

Crossrefs

Programs

  • Python
    from itertools import combinations_with_replacement as cwr
    from collections import defaultdict
    keep = defaultdict(lambda: 0)
    power_terms = [x**3 for x in range(1, 1000)]
    for pos in cwr(power_terms, 2):
        tot = sum(pos)
        keep[tot] += 1
        rets = sorted([k for k, v in keep.items() if v == 4])
        for x in range(len(rets)):
            print(rets[x])
Showing 1-6 of 6 results.