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-5 of 5 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

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

Original entry on oeis.org

16578, 43234, 49329, 53218, 54978, 57154, 93393, 106354, 107649, 108754, 138258, 151219, 160434, 168963, 173539, 177699, 178738, 181138, 183603, 185298, 195378, 195859, 196418, 197154, 197778, 201683, 202419, 209763, 211249, 216594, 217138, 223074, 234274, 235554, 235569, 237249, 237699, 240834
Offset: 1

Views

Author

David Consiglio, Jr., May 12 2021

Keywords

Comments

Differs from A344241 at term 36 because 236674 = 1^4 + 2^4 + 7^4 + 22^4 = 3^4 + 6^4 + 18^4 + 19^4 = 7^4 + 14^4 + 16^4 + 19^4 = 8^4 + 16^4 + 17^4 + 17^4

Examples

			49329 is a member of this sequence because 49329 = 2^4 + 2^4 + 12^4 + 13^4 = 4^4 + 8^4 + 9^4 + 14^4 = 6^4 + 9^4 + 12^4 + 12^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,4):
        tot = sum(pos)
        keep[tot] += 1
    rets = sorted([k for k,v in keep.items() if v == 3])
    for x in range(len(rets)):
        print(rets[x])

A344192 Numbers that are the sum of three fourth powers in exactly two ways.

Original entry on oeis.org

2673, 6578, 16562, 28593, 35378, 42768, 43218, 54977, 94178, 105248, 106353, 122018, 134162, 137633, 149058, 171138, 177042, 178737, 181202, 195122, 195858, 198497, 216513, 234273, 235298, 235553, 264113, 264992, 300833, 318402, 318882, 324818, 334802, 346673, 364658, 384833, 439922, 457488
Offset: 1

Views

Author

David Consiglio, Jr., May 11 2021

Keywords

Comments

Differs from A309762 at term 59 because 811538 = 4^4 + 23^4 + 27^4 = 7^4 + 21^4 + 28^4 = 12^4 + 17^4 + 29^4

Examples

			16562 is a member of this sequence because 16562 = 1^4 + 9^4 + 10^4 = 5^4 + 6^4 + 11^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 == 2])
    for x in range(len(rets)):
        print(rets[x])

A344239 Numbers that are the sum of three fourth powers in three or more ways.

Original entry on oeis.org

811538, 1733522, 2798978, 3750578, 4614722, 5978882, 6573938, 7303842, 8878898, 12771458, 12984608, 13760258, 14677362, 15601698, 15916082, 16196193, 17868242, 20621042, 21556178, 22349522, 22673378, 25190802, 25589858, 27736352, 29969282, 30623138, 33998258, 39765362, 41532498, 44048498
Offset: 1

Views

Author

David Consiglio, Jr., May 12 2021

Keywords

Examples

			2798978 =  6^4 + 31^4 + 37^4
        =  9^4 + 29^4 + 38^4
        = 13^4 + 26^4 + 39^4
so 2798978 is a term of this sequence.
		

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 >= 3])
    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])
Showing 1-5 of 5 results.