A348086 Variation of the EKG sequence A064413: a(n) is the smallest number not already used which shares a factor with a(n-1) and has a different number of divisors than a(n-1).
1, 2, 4, 6, 3, 9, 12, 8, 16, 10, 5, 15, 18, 14, 7, 21, 24, 20, 22, 11, 33, 30, 25, 35, 28, 26, 13, 39, 36, 27, 42, 32, 34, 17, 51, 45, 40, 38, 19, 57, 48, 44, 46, 23, 69, 54, 50, 55, 60, 52, 56, 49, 63, 66, 58, 29, 87, 72, 62, 31, 93, 75, 65, 70, 64, 68, 74, 37, 111, 78, 76, 80, 82, 41, 123, 81
Offset: 1
Keywords
Examples
a(9) = 16 as a(8) = 8 which shares a factor with 16, 16 is unused, and tau(8) = 4 does not equal tau(16) = 5. This is the first term that differs from A064413, the later having a(9) = 10, but tau(10) = 4 = tau(8) so is forbidden here.
Programs
-
Mathematica
a[1]=1;a[2]=2;a[n_]:=a[n]=(k=1;While[GCD[k,a[n-1]]==1||SameQ@@DivisorSigma[0,{k,a[n-1]}]||MemberQ[Array[a,n-1],k],k++];k);Array[a,76] (* Giorgos Kalogeropoulos, Oct 08 2021 *)
Comments