A067396 a(n) is the position of the n-th occurrence of the pair "2,2" in A067395 (the first difference sequence of A067368).
4, 13, 22, 31, 36, 41, 50, 59, 68, 77, 86, 95, 104, 109, 114, 123, 132, 141, 150, 159, 168, 177, 182, 187, 196, 205, 214, 223, 232, 241, 250, 255, 260, 269, 278, 287, 292, 297, 306, 315, 324, 329, 334, 343, 352, 361, 370, 379, 388, 397, 402, 407, 416, 425
Offset: 1
Keywords
Examples
A067395 begins {4,4,4,2,2,4,4,4,4,...}, so a(1)=4.
Links
- Altug Alkan, Table of n, a(n) for n = 1..1000
Programs
-
Python
def A067396(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)+n-1 # Chai Wah Wu, Feb 17 2025
Comments