OFFSET
1,1
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..200
J. H. Conway, On Happy Factorizations, J. Integer Sequences, Vol. 1, 1998, #1.
MATHEMATICA
r[b_, c_] := (red = Reduce[x > 0 && y > 0 && b*x^2 + 1 == c*y^2, {x, y}, Integers] /. C[1] -> 1 // Simplify; If[Head[red] === Or, First[red], red]); f[128] = {}(* to speed up *); f[n_] := f[n] = If[IntegerQ[Sqrt[n]], {}, Do[c = n/b; If[(r0 = r[b, c]) =!= False, {x0, y0} = {x, y} /. ToRules[r0]; Return[{b, c, x0, y0}]], {b, Divisors[n] // Most}]]; A191855 = Reap[Table[Print[n, " ", f[n]]; If[f[n] != {} && f[n] =!= Null, Sow[f[n][[2]]]], {n, 1, 130}]][[2, 1]] (* Jean-François Alcover, Sep 18 2015 *)
PROG
(Haskell)
a191855 = a007967 . a007969 -- Reinhard Zumkeller, Oct 11 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jun 18 2011
EXTENSIONS
Wrong formula removed (thanks to Wolfdieter Lang, who pointed this out) by Reinhard Zumkeller, Oct 11 2015
STATUS
approved