A374695 a(1) = 2; a(n) is the second smallest multiple of n different from a(1), ..., a(n-1).
2, 6, 9, 8, 10, 18, 14, 24, 36, 30, 22, 48, 26, 42, 45, 32, 34, 72, 38, 40, 63, 66, 46, 120, 50, 78, 54, 56, 58, 90, 62, 96, 99, 102, 70, 144, 74, 114, 117, 160, 82, 126, 86, 88, 180, 138, 94, 240, 98, 150, 153, 104, 106, 162, 110, 168, 171, 174, 118, 300, 122
Offset: 1
Examples
For n = 9, the only multiples of 9 in a(1), ..., a(8) are 9 and 18, so the smallest such that has not appeared are 27 and 36, thus a(9) = 36.
Links
- Yifan Xie, Table of n, a(n) for n = 1..1000
Programs
-
PARI
a=vector(101); used=matrix(500, 500); a[1]=2; for(n=1, 100, fordiv(a[n], d, used[d,a[n]/d]=1); cnt=1; while(used[n+1,cnt]==1, cnt++); cnt++; while(used[n+1,cnt]==1, cnt++); a[n+1]=cnt*(n+1));
Comments