The entry N = A104017(n) is written as the product N = p*q*r*... of its k distinct prime factors p<q<r<... . The (k-2)nd power multiplied by the decremented p-1 of the smallest prime factor and divided by the product of the decremented other prime factors defines a(n): a(n) = (N-1)^(k-2)*(p-1)/( (q-1)*(r-1)*...). [R. J. Mathar, Dec 16 2010]