OFFSET
1,4
COMMENTS
The length of row n is A343240(n).
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1468 (first 500 rows)
FORMULA
EXAMPLE
The irregular triangle T with A(n) = A343238(n) begins:
n A(n) \ k 1 2 3 4 ...
---------------------------
1, 1: 0
2, 2: 1
3, 3: 1 2
4, 5: 0
5, 6: 1 5
6, 7: 3 4
7, 9: 2 7
8, 10: 5
9, 14: 3 11
10, 15: 5 10
11, 18: 7 11
12, 21: 4 10 11 17
13, 23: 8 15
14, 27: 7 20
15, 29: 13 16
16, 30: 5 25
17, 35: 10 25
18, 41: 6 35
19, 42: 11 17 25 31
20, 43: 9 34
...
PROG
(PARI) isok(k) = issquare(Mod(-5, k)); \\ A343238
lista(nn) = my(list = List()); for (n=1, nn, if (issquare(Mod(-5, n)), my(row = select(x->(Mod(x, n)^2 + 5 == 0), [0..n-1])); listput(list, row))); Vec(list); \\ Michel Marcus, Sep 17 2023
CROSSREFS
KEYWORD
nonn,tabf,easy
AUTHOR
Wolfdieter Lang, May 16 2021
STATUS
approved