A383252 Numbers that cannot be written in the form (j+2k)^2-(j+k)^2-j^2 with j,k>0.
1, 2, 5, 6, 8, 9, 10, 13, 14, 17, 18, 21, 22, 24, 25, 26, 29, 30, 33, 34, 37, 38, 40, 41, 42, 45, 46, 49, 50, 53, 54, 56, 57, 58, 61, 62, 65, 66, 69, 70, 72, 73, 74, 77, 78, 81, 82, 85, 86, 88, 89, 90, 93, 94, 97, 98, 101, 102, 104, 105, 106, 109, 110, 113
Offset: 1
Keywords
Links
- Project Euler, Problem 135: Same Differences.
Crossrefs
Cf. A364168.
Programs
-
Python
isok = lambda n: (n & 15) in [1, 2, 5, 6, 8, 9, 10, 13, 14] print([n for n in range(1,256) if isok(n)])
Comments