A322025 Ordinal transform of A322023.
1, 1, 2, 2, 3, 1, 4, 1, 3, 1, 5, 1, 6, 2, 1, 2, 7, 1, 8, 1, 1, 4, 9, 1, 10, 2, 5, 2, 11, 1, 12, 1, 1, 3, 2, 1, 13, 3, 3, 1, 14, 1, 15, 1, 2, 6, 16, 1, 7, 1, 3, 3, 17, 2, 2, 1, 2, 8, 18, 1, 19, 9, 1, 4, 1, 1, 20, 3, 4, 2, 21, 1, 22, 2, 2, 2, 3, 1, 23, 1, 24, 3, 25, 1, 1, 4, 5, 3, 26, 1, 1, 5, 3, 10, 5, 1, 27, 3, 2, 1, 28, 1, 29, 1, 1
Offset: 1
Keywords
Links
- Antti Karttunen, Table of n, a(n) for n = 1..65537
Programs
-
PARI
\\ Needs also code from A322023. ordinal_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), pt); for(i=1, length(invec), if(mapisdefined(om,invec[i]), pt = mapget(om, invec[i]), pt = 0); outvec[i] = (1+pt); mapput(om,invec[i],(1+pt))); outvec; }; v322025 = ordinal_transform(v322023); A322025(n) = v322025[n];
Comments