OFFSET
1,1
EXAMPLE
The Wythoff array begins:
1 2 3 5 ...
4 7 11 18 ...
6 10 16 26 ...
...
where one can see these 2 patterns:
2 3 and 3 5
7 11
so 2 and 3 are terms.
PROG
(PARI) T(n, k) = (n+sqrtint(5*n^2))\2*fibonacci(k+1) + (n-1)*fibonacci(k); \\ A035513
cell(n) = for (r=1, oo, for (c=1, oo, if (T(r, c) == n, return([r, c])); if (T(r, c) > n, break); ); );
isokp(m) = my(pos = cell(prime(m))); isprime (T(pos[1], pos[2]+1)) && isprime(T(pos[1]+1, pos[2]));
lista(nn) = for (n=1, nn, if (isokp(n), print1(prime(n), ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Mar 20 2022
STATUS
approved