A338338 Lexicographically earliest infinite sequence of distinct positive numbers such that for any prime p, any run of consecutive multiples of p has length exactly 3.
1, 2, 4, 6, 3, 9, 5, 10, 20, 8, 7, 14, 28, 12, 15, 30, 40, 16, 11, 22, 44, 18, 21, 42, 56, 24, 27, 33, 55, 110, 50, 26, 13, 39, 36, 48, 32, 17, 34, 68, 38, 19, 57, 45, 60, 70, 84, 63, 51, 85, 170, 80, 46, 23, 69, 54, 66, 88, 77, 35, 105, 75, 72, 52, 78, 117
Offset: 1
Keywords
Examples
After 1,2,4,6,3, we have had two successive multiples of 3, so the next term must be a multiple of 3 we have not yet seen, hence 9. The following term is then the smallest number not yet seen which is not a multiple of 3, hence 5.
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..20000
- Rémy Sigrist, PARI program for A338338
Crossrefs
Programs
-
PARI
See Links section.
Extensions
Corrected and extended by Rémy Sigrist, Oct 27 2020
Comments