A346471 a(n) = A344695(A276086(n)), where A344695(x) = gcd(psi(x), sigma(x)), and A276086 gives the prime product form of primorial base expansion of n.
1, 3, 4, 12, 1, 3, 6, 18, 24, 72, 6, 18, 1, 3, 4, 12, 1, 3, 6, 18, 24, 72, 12, 36, 1, 3, 4, 12, 1, 3, 8, 24, 32, 96, 8, 24, 48, 144, 192, 576, 48, 144, 8, 24, 32, 96, 8, 24, 48, 144, 192, 576, 96, 288, 8, 24, 32, 96, 8, 24, 1, 3, 4, 12, 3, 9, 6, 18, 24, 72, 18, 54, 3, 9, 12, 36, 3, 9, 12, 36, 48, 144, 36, 108, 3, 9, 12, 36
Offset: 0