A330531 Lexicographically earliest sequence of distinct positive integers such that the product of two consecutive terms is always divisible by 6.
1, 6, 2, 3, 4, 9, 8, 12, 5, 18, 7, 24, 10, 15, 14, 21, 16, 27, 20, 30, 11, 36, 13, 42, 17, 48, 19, 54, 22, 33, 26, 39, 28, 45, 32, 51, 34, 57, 38, 60, 23, 66, 25, 72, 29, 78, 31, 84, 35, 90, 37, 96, 40, 63, 44, 69, 46, 75, 50, 81, 52, 87, 56, 93, 58, 99, 62
Offset: 1
Keywords
Examples
The first terms, alongside their product with the next term, are: n a(n) a(n)*a(n+1) -- ---- ----------- 1 1 6 2 6 12 3 2 6 4 3 12 5 4 36 6 9 72 7 8 96 8 12 60 9 5 90 10 18 126
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)%6==0, v=w; break)))
Comments