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.

A188462 Least number of 5th powers needed to represent n.

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, 25, 26, 27, 28, 29, 30, 31, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
Offset: 1

Views

Author

Jean-François Alcover, Apr 01 2011

Keywords

Comments

Vaughan & Wooley (1995) prove that a(n) <= 17 for large enough n; in fact it is conjectured that a(n) <= 6 for large enough n. The maximum value is a(223) = 37. - Charles R Greathouse IV, Jul 05 2017

Examples

			33 = 2^5 + 1^5 (least decomposition) hence a(33) = 2.
		

Crossrefs

Cf. A002828 (squares), A002376 (cubes), A002377 (4th powers), A374012 (6th powers).

Programs

  • Mathematica
    Cnt5[n_] := Module[{k = 1}, While[Length[PowersRepresentations[n, k, 5]] == 0, k++]; k]; Array[Cnt5, 105] (* T. D. Noe, Apr 01 2011 *)
  • Python
    from itertools import count
    from sympy.solvers.diophantine.diophantine import power_representation
    def A188462(n):
        if n == 1: return 1
        for k in count(1):
            try:
                next(power_representation(n,5,k))
            except:
                continue
            return k # Chai Wah Wu, Jun 25 2024