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

A321290 Smallest positive number for which the 3rd power cannot be written as sum of 3rd powers of any subset of previous terms.

Original entry on oeis.org

1, 2, 3, 4, 5, 7, 8, 10, 11, 13, 17, 21, 22, 28, 29, 33, 38, 41, 48, 68, 70, 96, 124, 130, 158, 179, 239, 309, 310, 351, 468, 509, 640, 843, 900, 1251, 1576, 1640, 2305, 2444, 2989, 3410, 4575, 5758, 5998, 7490, 8602, 11657, 13017, 15553, 19150, 24411, 25365
Offset: 1

Views

Author

Bert Dobbelaere, Nov 02 2018

Keywords

Comments

a(n)^3 forms a sum-free sequence.

Examples

			a(10) = 13. 3rd powers of 14, 15 and 16 can be written as sums of 3rd powers of a subset of the terms {a(1)..a(10)}:
14^3 = 2^3 + 3^3 + 8^3 + 13^3,
15^3 = 4^3 + 5^3 + 7^3 + 8^3 + 10^3 + 11^3,
16^3 = 1^3 + 2^3 + 3^3 + 4^3 + 5^3 + 7^3 + 11^3 + 13^3,
17^3 cannot be written in this way, so a(11) = 17 is the next term.
		

Crossrefs

Other powers: A321266 (2), A321291 (4), A321292 (5), A321293 (6)

Programs

  • Python
    def findSum(nopt, tgt, a, smax, pwr):
        if nopt==0:
            return [] if tgt==0 else None
        if tgt<0 or tgt>smax[nopt-1]:
            return None
        rv=findSum(nopt-1, tgt - a[nopt-1]**pwr, a, smax, pwr)
        if rv!=None:
            rv.append(a[nopt-1])
        else:
            rv=findSum(nopt-1, tgt, a, smax, pwr)
        return rv
    def A321290(n):
        POWER=3 ; x=0 ; a=[] ; smax=[] ; sumpwr=0
        while len(a)
    				

A321291 Smallest positive number for which the 4th power cannot be written as sum of 4th powers of any subset of previous terms.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 32, 34, 36, 38, 40, 42, 44, 46, 48, 52, 54, 56, 64, 68, 72, 76, 80, 84, 88, 92, 96, 104, 108, 112, 128, 136, 144, 152, 160, 168, 176, 184, 192, 208, 216, 224, 256
Offset: 1

Views

Author

Bert Dobbelaere, Nov 02 2018

Keywords

Comments

a(n)^4 forms a sum-free sequence.
It is noteworthy that the terms of this sequence increase slower than those of similar sequences for smaller (A321266, A321290) but also larger powers (A321292, A321293).

Examples

			The smallest number > 0 that is not in the sequence is 15, because
    15^4 = 4^4 + 6^4 + 8^4 + 9^4 + 14^4.
		

Crossrefs

Other powers: A321266 (2), A321290 (3), A321292 (5), A321293 (6).

Programs

  • Python
    def findSum(nopt, tgt, a, smax, pwr):
        if nopt==0:
            return [] if tgt==0 else None
        if tgt<0 or tgt>smax[nopt-1]:
            return None
        rv=findSum(nopt-1, tgt - a[nopt-1]**pwr, a, smax, pwr)
        if rv!=None:
            rv.append(a[nopt-1])
        else:
            rv=findSum(nopt-1, tgt, a, smax, pwr)
        return rv
    def A321291(n):
        POWER=4 ; x=0 ; a=[] ; smax=[] ; sumpwr=0
        while len(a)
    				

Formula

a(n) = 2 * a(n-12) for n > 25 (conjectured).

A321292 Smallest positive number for which the 5th power cannot be written as sum of distinct 5th powers of any subset of previous terms.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 25, 26, 27, 28, 30, 37, 43, 44, 55, 57, 64, 77, 82, 90, 97, 112, 116, 119, 154, 156, 178, 202, 227, 269, 309, 335, 371, 397, 442, 516, 604, 643, 722, 774, 815, 1000, 1115, 1308, 1503
Offset: 1

Views

Author

Bert Dobbelaere, Nov 02 2018

Keywords

Comments

a(n)^5 forms a sum-free sequence.

Examples

			The smallest number > 0 that is not in the sequence is 12, because
12^5 = 4^5 + 5^5 + 6^5 + 7^5 + 9^5 + 11^5.
		

Crossrefs

Other powers: A321266 (2), A321290 (3), A321291 (4), A321293 (6).

Programs

  • Python
    def findSum(nopt, tgt, a, smax, pwr):
        if nopt==0:
            return [] if tgt==0 else None
        if tgt<0 or tgt>smax[nopt-1]:
            return None
        rv=findSum(nopt-1, tgt - a[nopt-1]**pwr, a, smax, pwr)
        if rv!=None:
            rv.append(a[nopt-1])
        else:
            rv=findSum(nopt-1, tgt, a, smax, pwr)
        return rv
    def A321292(n):
        POWER=5 ; x=0 ; a=[] ; smax=[] ; sumpwr=0
        while len(a)
    				

A321293 Smallest positive number for which the 6th power cannot be written as sum of distinct 6th powers of any subset of previous terms.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 29, 30, 31, 33, 34, 42, 43, 51, 57, 60, 61, 71, 74, 88, 91, 99, 112, 116, 117, 132, 152, 153, 176, 203, 228, 244, 256, 281, 293, 345, 392, 439, 441, 529, 594, 627
Offset: 1

Views

Author

Bert Dobbelaere, Nov 02 2018

Keywords

Comments

a(n)^6 forms a sum-free sequence.

Examples

			The smallest number > 0 that is not in the sequence is 25, because 25^6 = 1^6 + 2^6 + 3^6 + 5^6 + 6^6 + 7^6 + 8^6 + 9^6 + 10^6 + 12^6 + 13^6 + 15^6 + 16^6 + 17^6 + 18^6 + 23^6.
		

Crossrefs

Other powers: A321266 (2), A321290 (3), A321291 (4), A321292 (5).

Programs

  • Python
    def findSum(nopt, tgt, a, smax, pwr):
        if nopt==0:
            return [] if tgt==0 else None
        if tgt<0 or tgt>smax[nopt-1]:
            return None
        rv=findSum(nopt-1, tgt - a[nopt-1]**pwr, a, smax, pwr)
        if rv!=None:
            rv.append(a[nopt-1])
        else:
            rv=findSum(nopt-1, tgt, a, smax, pwr)
        return rv
    def A321293(n):
        POWER=6 ; x=0 ; a=[] ; smax=[] ; sumpwr=0
        while len(a)
    				
Showing 1-4 of 4 results.