OFFSET
0,2
COMMENTS
From a(30) to a(209) sequence consists of repeating subsequences, all permutations of {1..10}: 3*{7, 3, 10, 9, 8, 5, 2, 4, 6, 1}, 3*{5, 10, 4, 8, 1, 2, 3, 6, 9, 7}, 3*{2, 4, 6, 1, 7, 3, 10, 9, 8, 5}, 3*{3, 6, 9, 7, 5, 10, 4, 8, 1, 2}, 3*{10, 9, 8, 5, 2, 4, 6, 1, 7, 3}, 3*{4, 8, 1, 2, 3, 6, 9, 7, 5, 10}. However, later the subsequences are no more pure permutations, as for example a(210..221) = {11, 9, 7, 1, 8, 3, 3, 6, 9, 5, 1, 2}.
LINKS
PROG
(PARI) A392866(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m%p); };
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Antti Karttunen, Jan 27 2026
STATUS
approved
