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.

A173636 Number of positive solutions of equation x(x+n)=y*y.

Original entry on oeis.org

0, 0, 0, 1, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 4, 2, 1, 2, 1, 1, 4, 1, 1, 4, 2, 1, 3, 1, 1, 4, 1, 3, 4, 1, 4, 2, 1, 1, 4, 4, 1, 4, 1, 1, 7, 1, 1, 7, 2, 2, 4, 1, 1, 3, 4, 4, 4, 1, 1, 4, 1, 1, 7, 4, 4, 4, 1, 1, 4, 4, 1, 7, 1, 1, 7, 1, 4, 4
Offset: 0

Views

Author

Carmine Suriano, Nov 23 2010

Keywords

Comments

The solution x=y=0 is not counted.
Same as A115878 except for a(0). - Georg Fischer, Oct 12 2018

Examples

			a(9)=2 since x(x+9)=y*y has 2 solutions: x=3, y=6 and x=16, y=20.
		

Crossrefs

Programs

  • Mathematica
    Join[{0}, Table[Length[{ToRules[Reduce[x (x + n) == y^2 && x > 0 && y > 0, {x, y}, Integers]]}], {n, 100}]]

Formula

a(n) = A176835(n)-1. - R. J. Mathar, Nov 23 2010