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-7 of 7 results.

A048927 Numbers that are the sum of 5 positive cubes in exactly 2 ways.

Original entry on oeis.org

157, 220, 227, 246, 253, 260, 267, 279, 283, 286, 305, 316, 323, 342, 344, 361, 368, 377, 379, 384, 403, 410, 435, 440, 442, 468, 475, 487, 494, 501, 523, 530, 531, 549, 562, 568, 586, 592, 594, 595, 599, 602, 621, 625, 640, 647, 657, 658, 683, 703, 710
Offset: 1

Views

Author

Keywords

Comments

It appears that this sequence has 15416 terms, the last of which is 2243453. - Donovan Johnson, Jan 11 2013
From a(1) = 157 we see that c(n) = (number of ways n is the sum of 5 cubes) coincides with A010057 = characteristic function of cubes, up to n = 156. This sequence lists the numbers n for which c(n) = 2. See A003328 for c(n) > 0 and A048926 for c(n) = 1. - M. F. Hasler, Jan 04 2023

Crossrefs

Cf. A003328 (sums of 5 positive cubes), A025404, A048926 (sum of 5 positive cubes in exactly 1 way), A048930, A294736, A343702, A343705, A344237.

Programs

  • Mathematica
    Select[ Range[ 1000], (test = Length[ Select[ PowersRepresentations[#, 5, 3], And @@ (Positive /@ #)& ] ] == 2; If[test, Print[#]]; test)& ](* Jean-François Alcover, Nov 09 2012 *)
  • PARI
    (waycount(n,numcubes,imax)={if(numcubes==0, !n, sum(i=1,imax, waycount(n-i^3,numcubes-1,i)))}); isA048927(n)=(waycount(n,5,floor(n^(1/3)))==2); \\ Michael B. Porter, Sep 27 2009
  • Python
    def ways (n, left = 5, last = 1):
      a = last; a3 = a**3; c = 0
      while a3 <= n-left+1:
        if left > 1:
           c += ways(n-a3, left-1, a)
        elif a3 == n:
           c += 1
        a += 1; a3 = a**3
      return c
    for n in range (1,1000): # to print this sequence
      if ways(n)==2: print(n,end=", ") # in Python2 use, e.g.: print n,
    # Minor edits by M. F. Hasler, Jan 04 2023
    

Extensions

More terms from Walter Hofmann (walterh(AT)gmx.de), Jun 01 2000

A342686 Numbers that are the sum of five fifth powers in exactly two ways.

Original entry on oeis.org

4097, 51446, 51477, 51688, 52469, 54570, 59221, 68252, 68905, 84213, 110494, 131104, 151445, 212496, 300277, 325174, 325713, 355114, 422135, 422738, 589269, 637418, 794434, 810820, 876734, 876765, 876976, 877757, 879858, 884509, 893540, 909501, 924912, 935782, 976733, 995571, 1037784, 1083457
Offset: 1

Views

Author

David Consiglio, Jr., May 18 2021

Keywords

Comments

This sequence differs from A342685:
13124675 = 1^5 + 9^5 + 10^5 + 20^5 + 25^5
= 2^5 + 5^5 + 12^5 + 23^5 + 23^5
= 16^5 + 19^5 + 20^5 + 20^5 + 20^5,
so 13124675 is in A342685, but is not in this sequence.

Examples

			51477 = 2^5 + 4^5 + 7^5 + 7^5 + 7^5
      = 2^5 + 5^5 + 6^5 + 6^5 + 8^5
so 51477 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**5 for x in range(1, 500)]
    for pos in cwr(power_terms, 5):
        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])

A344193 Numbers that are the sum of four fourth powers in exactly two ways.

Original entry on oeis.org

259, 2674, 2689, 2754, 2929, 3298, 3969, 4144, 4209, 5074, 6579, 6594, 6659, 6769, 6834, 7203, 7874, 8194, 8979, 9154, 9234, 10113, 10674, 11298, 12673, 12913, 13139, 14674, 14689, 14754, 16563, 16643, 16818, 17187, 17234, 17299, 17314, 17858, 18963, 19699, 20658, 20739, 20979, 21154, 21219, 21329, 21363
Offset: 1

Views

Author

David Consiglio, Jr., May 11 2021

Keywords

Comments

Differs from A309763 at term 32 because 16578 = 1^4 + 2^4 + 9^4 + 10^4 = 2^4 + 5^4 + 6^4 + 11^4 = 3^4 + 7^4 + 8^4 + 10^4

Examples

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

A344238 Numbers that are the sum of five fourth powers in two or more ways.

Original entry on oeis.org

260, 275, 340, 515, 884, 1555, 2595, 2660, 2675, 2690, 2705, 2755, 2770, 2835, 2930, 2945, 3010, 3185, 3299, 3314, 3379, 3554, 3923, 3970, 3985, 4050, 4115, 4145, 4160, 4210, 4225, 4290, 4355, 4400, 4465, 4594, 4769, 4834, 5075, 5090, 5155, 5265, 5330, 5395, 5440, 5505, 5570, 5699, 6370, 6545, 6580, 6595, 6610
Offset: 1

Views

Author

David Consiglio, Jr., May 12 2021

Keywords

Examples

			340 = 1^4 + 1^4 + 1^4 + 3^4 + 4^4
    = 2^4 + 3^4 + 3^4 + 3^4 + 3^4
so 340 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, 5):
        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])

A344244 Numbers that are the sum of five fourth powers in exactly three ways.

Original entry on oeis.org

4225, 6610, 6850, 9170, 9235, 9490, 11299, 12929, 14209, 14690, 14755, 14770, 15314, 16579, 16594, 16659, 16834, 17203, 17235, 17315, 17859, 17874, 17939, 18785, 18850, 18979, 19154, 19700, 19715, 20674, 21250, 21330, 21364, 21410, 21954, 23139, 23795, 24754, 25810, 26578, 28610, 28930, 29330, 29699
Offset: 1

Views

Author

David Consiglio, Jr., May 12 2021

Keywords

Comments

Differs from A344243 at term 31 because 20995 = 1^4 + 1^4 + 1^4 + 4^4 + 12^4 = 2^4 + 3^4 + 3^4 + 3^4 + 12^4 = 2^4 + 6^4 + 9^4 + 9^4 + 9^4 = 4^4 + 6^4 + 7^4 + 7^4 + 11^4

Examples

			6850 is a member of this sequence because 6850 =  = 1^4 + 2^4 + 2^4 + 4^4 + 9^4 = 2^4 + 3^4 + 4^4 + 7^4 + 8^4 = 3^4 + 3^4 + 6^4 + 6^4 + 8^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,5):
        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])

A345814 Numbers that are the sum of six fourth powers in exactly two ways.

Original entry on oeis.org

261, 276, 291, 341, 356, 421, 516, 531, 596, 771, 885, 900, 965, 1140, 1361, 1509, 1556, 1571, 1636, 1811, 2180, 2596, 2611, 2661, 2691, 2706, 2721, 2741, 2756, 2771, 2786, 2836, 2931, 2946, 2961, 3011, 3026, 3091, 3186, 3201, 3220, 3266, 3285, 3300, 3315
Offset: 1

Views

Author

David Consiglio, Jr., Jun 26 2021

Keywords

Comments

Differs from A345559 at term 25 because 2676 = 1^4 + 1^4 + 2^4 + 4^4 + 7^4 = 1^4 + 1^4 + 1^4 + 3^4 + 6^4 + 6^4 = 2^4 + 2^4 + 3^4 + 3^4 + 3^4 + 7^4.

Examples

			276 is a term because 276 = 1^4 + 1^4 + 1^4 + 1^4 + 2^4 + 4^4 = 1^4 + 2^4 + 2^4 + 3^4 + 3^4 + 3^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, 1000)]
    for pos in cwr(power_terms, 6):
        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])

A344190 Numbers that are the sum of five fourth powers in exactly one way.

Original entry on oeis.org

5, 20, 35, 50, 65, 80, 85, 100, 115, 130, 145, 165, 180, 195, 210, 245, 290, 305, 320, 325, 355, 370, 385, 405, 420, 435, 450, 500, 530, 545, 560, 580, 595, 610, 625, 629, 644, 659, 674, 675, 689, 690, 709, 724, 739, 754, 755, 770, 785, 789, 800, 804, 819, 850, 865, 869, 899, 914, 929, 930, 949, 964, 979, 994, 1025, 1040
Offset: 1

Views

Author

David Consiglio, Jr., May 11 2021

Keywords

Comments

Differs from A003339 at term 17 because 260 = 1^4 + 1^4 + 1^4 + 1^4 + 4^4 = 1^4 + 2^4 + 3^4 + 3^4 + 3^4

Examples

			35 is a member of this sequence because 35 = 1^4 + 1^4 + 1^4 + 2^4 + 2^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,5):
        tot = sum(pos)
        keep[tot] += 1
    rets = sorted([k for k,v in keep.items() if v == 1])
    for x in range(len(rets)):
        print(rets[x])
Showing 1-7 of 7 results.