A213258 Positive integers that are not in A213257.
4, 12, 20, 28, 32, 36, 44, 52, 60, 68, 76, 84, 92, 96, 100, 108, 116, 124, 132, 140, 148, 156, 160, 164, 172, 180, 188, 196, 204, 212, 220, 224, 228, 236, 244, 252, 256, 260, 268, 276, 284, 288, 292, 300, 308, 316, 324, 332, 340, 348, 352, 356, 364, 372, 380, 388, 396, 404, 412, 416, 420, 428, 436, 444, 452, 460, 468, 476, 480, 484, 492, 500
Offset: 1
Keywords
Programs
-
Mathematica
Select[Range[500], Mod[IntegerExponent[#, 2], 3] == 2 &] (* Amiram Eldar, May 31 2024 *)
-
PARI
is(n) = valuation(n, 2) % 3 == 2; \\ Amiram Eldar, May 31 2024
-
Python
def A213258(n): def f(x): return n+x-sum(((x>>i)-1>>1)+1 for i in range(0,x.bit_length(),3)) m, k = n, f(n) while m != k: m, k = k, f(k) return m<<2 # Chai Wah Wu, Feb 17 2025
Comments