A330530 Lexicographically earliest sequence of distinct positive integers such that the product of two consecutive terms is always divisible by 4.
1, 4, 2, 6, 8, 3, 12, 5, 16, 7, 20, 9, 24, 10, 14, 18, 22, 26, 28, 11, 32, 13, 36, 15, 40, 17, 44, 19, 48, 21, 52, 23, 56, 25, 60, 27, 64, 29, 68, 30, 34, 38, 42, 46, 50, 54, 58, 62, 66, 70, 72, 31, 76, 33, 80, 35, 84, 37, 88, 39, 92, 41, 96, 43, 100, 45, 104
Offset: 1
Examples
The first terms, alongside their product with the next term, are: n a(n) a(n)*a(n+1) -- ---- ----------- 1 1 4 2 4 8 3 2 12 4 6 48 5 8 24 6 3 36 7 12 60 8 5 80 9 16 112 10 7 140
Links
Programs
-
PARI
s=0; v=1; for (n=1, 10 000, print (n " " v); s+=2^v; for (w=1, oo, if (!bittest(s,w) && (v*w)%4==0, v=w; break)))
Comments