OFFSET
2,5
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 2..1000
FORMULA
a(n) = A027750(n) - 1.
EXAMPLE
n\k| 0 1 2 3 4 5 6 7 8 9 10
---+------------------------------------------
0 | 0
1 | 0 1 2 3 4 5 6 7 8 9 10
2 | 0
3 | 0 1
4 | 0 2
5 | 0 1 3
6 | 0 4
7 | 0 1 2 5
8 | 0 6
9 | 0 1 3 7
10 | 0 2 8
11 | 0 1 4 9
12 | 0 10
13 | 0 1 2 3 5 11
MATHEMATICA
Table[Select[Range[0, n-2], Divisible[#^2+n #, #+1]&], {n, 30}]//Flatten (* Harvey P. Dale, Dec 27 2016 *)
PROG
(PARI) tabf(nn) = {for (n=2, nn, for (k=0, n, if (!((k^2 + k*n) % (k+1)), print1(k, ", ")); ); print(); ); } \\ Michel Marcus, Oct 25 2015
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Juri-Stepan Gerasimov, Oct 25 2015
STATUS
approved