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.

A216579 Number of positive integer solutions to the equation a^2 + 10*b^2 = n.

Original entry on oeis.org

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

Views

Author

V. Raman, Sep 08 2012

Keywords

Crossrefs

Programs

  • Mathematica
    a[ n_] := If[ n < 1, 0, Length@Select[ Range@Sqrt[ n/10], IntegerQ@Sqrt[ n - 10 #] &]]; (* Michael Somos, Jan 10 2015 *)
  • PARI
    a(n)=sum(b=1,sqrtint((n-1)\10),issquare(n-10*b^2)) \\ Charles R Greathouse IV, Nov 19 2014