OFFSET
2,3
COMMENTS
a(n) is the unique number k in [1, 2^n] and congruent to 1 mod 4 such that k^2 - 17 is divisible by 2^(n+1).
LINKS
Jianing Song, Table of n, a(n) for n = 2..1000
FORMULA
EXAMPLE
The unique number k in [1, 4] and congruent to 1 modulo 4 such that k^2 - 17 is divisible by 8 is 1, so a(2) = 1.
a(2)^2 - 17 = -16 which is divisible by 16, so a(3) = a(2) = 1.
a(3)^2 - 17 = -16 which is not divisible by 32, so a(4) = a(3) + 2^3 = 9.
a(4)^2 - 17 = 64 which is divisible by 64, so a(5) = a(4) = 9.
a(5)^2 - 17 = 64 which is not divisible by 128, so a(6) = a(5) + 2^5 = 41.
...
PROG
(PARI) a(n) = truncate(sqrt(17+O(2^(n+1))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Feb 13 2021
STATUS
approved