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.

A216280 Number of nonnegative solutions to the equation x^4 + y^4 = n.

Original entry on oeis.org

1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 1

Views

Author

V. Raman, Sep 03 2012

Keywords

Comments

The first n with a(n) > 1 is 635318657 = 41 * 113 * 241 * 569, with a(635318657) = 2. Izadi, Khoshnam, & Nabardi show that for any n with a(n) > 1, the elliptic curve y^2 = x^3 - nx has rank at least 3. According to gp, y^2 = x^3 - 635318657x has analytic rank 4 (and first nonzero derivative around 35741.7839). - Charles R Greathouse IV, Jan 12 2017

Crossrefs

Cf. A004831 (positions of nonzero terms).

Programs

  • Mathematica
    Reap[For[n = 1, n <= 1000, n++, r = Reduce[0 <= x <= y && x^4 + y^4 == n, {x, y}, Integers]; sols = Which[r === False, 0, r[[0]] == And, 1, r[[0]] == Or, Length[r], True, Print[n, " ", r]]; If[sols != 0, Print[n, " ", sols, " ", r]]; Sow[sols]]][[2, 1]] (* Jean-François Alcover, Feb 22 2019 *)
  • PARI
    a(n)=my(t=thue(thueinit('x^4+1,1),n)); sum(i=1,#t, t[i][1]>=0 && t[i][2]>=t[i][1]) \\ Charles R Greathouse IV, Jan 12 2017
    
  • PARI
    first(n)=my(T=thueinit('x^4+1,1),v=vector(n),t); for(k=1,n, t=thue(T,k); v[k]=sum(i=1,#t, t[i][1]>=0 && t[i][2]>=t[i][1])); v \\ Charles R Greathouse IV, Jan 12 2017

Extensions

Offset added by Charles R Greathouse IV, Jan 12 2017