|
|
A265576
|
|
LCM-transform of EKG sequence A064413.
|
|
4
|
|
|
1, 2, 2, 3, 1, 3, 1, 2, 5, 1, 1, 1, 7, 1, 1, 1, 2, 1, 11, 1, 1, 3, 1, 5, 1, 1, 13, 1, 1, 1, 2, 17, 1, 1, 1, 19, 1, 1, 1, 1, 1, 23, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 29, 1, 1, 1, 31, 1, 1, 1, 2, 1, 37, 1, 1, 1, 1, 1, 1, 41
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
This is not equal to A014963(A064413(n)) because the EKG-permutation doesn't satisfy the property that all prime powers should appear before any of their multiples, as, for example, A064413(4) = 6 comes before A064413(5) = 3. See comments in A368900. - Antti Karttunen, Jan 13 2024
|
|
LINKS
|
|
|
MAPLE
|
LCMXfm:=proc(a) local L, i, n, g, b;
L:=nops(a);
g:=Array(1..L, 0); b:=Array(1..L, 0);
b[1]:=a[1]; g[1]:=a[1];
for n from 2 to L do g[n]:=ilcm(g[n-1], a[n]); b[n]:=g[n]/g[n-1]; od;
lprint([seq(b[i], i=1..L)]);
end;
# let t1 contain the first 100 terms of A064413
LCMXfm(t1);
|
|
MATHEMATICA
|
LCMXfm[a_List] := Module[{L = Length[a], b, g}, b[1] = g[1] = a[[1]]; b[_] = 0; g[_] = 0; Do[g[n] = LCM[g[n - 1], a[[n]]]; b[n] = g[n]/g[n - 1], {n, 2, L}]; Array[b, L]];
ekg[1] = 1; ekg[2] = 2; ekg[n_] := ekg[n] = For[k = 1, True, k++, If[FreeQ[ Array[ekg, n - 1], k] && !CoprimeQ[k, ekg[n - 1]], Return[k]]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|