A338669 The prime tower factorization of a(n) is obtained by replacing the rightmost prime number by 1 in the prime tower factorization of n; a(1) = 1.
1, 1, 1, 2, 1, 2, 1, 2, 3, 2, 1, 4, 1, 2, 3, 4, 1, 6, 1, 4, 3, 2, 1, 8, 5, 2, 3, 4, 1, 6, 1, 2, 3, 2, 5, 12, 1, 2, 3, 8, 1, 6, 1, 4, 9, 2, 1, 16, 7, 10, 3, 4, 1, 6, 5, 8, 3, 2, 1, 12, 1, 2, 9, 4, 5, 6, 1, 4, 3, 10, 1, 24, 1, 2, 15, 4, 7, 6, 1, 16, 9, 2, 1, 12
Offset: 1
Keywords
Examples
See Links section.
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10000
- Rémy Sigrist, Illustration of initial terms
Programs
-
PARI
a(n) = { if (n==1, 1, my (f=factor(n), w=#f~, p=f[w,1], e=f[w,2]); if (e==1, n/p, n*p^(a(e)-e))) }
Comments