a(n) is the smallest k such that k + 1 and n*k + 1 both are perfect squares, or 0 if no such number exists.

A084702

a(n) is the smallest k such that k + 1 and n*k + 1 both are perfect squares, or 0 if no such number exists.

Terms

    a(0) =3a(1) =24a(2) =8a(3) =0a(4) =3a(5) =8a(6) =24a(7) =3a(8) =0a(9) =8a(10) =48a(11) =24a(12) =15a(13) =120a(14) =8a(15) =3a(16) =15a(17) =168a(18) =80a(19) =48a(20) =3a(21) =24a(22) =360a(23) =15a(24) =0a(25) =24a(26) =440a(27) =8a(28) =120a(29) =80

External references