OFFSET
1,3
COMMENTS
All squares belong to the sequence.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
The first terms, alongside the corresponding decompositions, are:
n a(n) Corresponding (x, y) (with x<=y)
-- ---- -----------------------------------------
1 0 (0, 0)
2 1 (0, 1) (1, 1)
3 4 (0, 2) (2, 2)
4 5 (1, 2)
5 9 (0, 3) (1, 3) (3, 3)
6 13 (2, 3)
7 16 (0, 4) (4, 4)
8 17 (1, 4)
9 20 (2, 4)
10 25 (0, 5) (1, 5) (3, 4) (3, 5) (4, 5) (5, 5)
PROG
(PARI) is(n) = setsearch(setbinop(bitor, select(x2 -> bitand(n, x2)==x2, vector(1+sqrtint(n), x, (x-1)^2))), n)>0
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 19 2020
STATUS
approved