OFFSET
1,3
COMMENTS
Positions where 1, 2, 3, 4, 5, ... occur for the first time are 1, 3, 5, 7, 11, 13, 17, 19, 23, 25, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 81, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 187, 191, 193, ... Note that this is not a subsequence of A000961; for example, 187 = 11*17 is a semiprime.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
PROG
(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];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 01 2018
STATUS
approved