|
COMMENT
|
Smallest prime p such that p^2 divides n^(p-1) - 1, or 0 if no such p exists, are listed in A039951(n) = {2,1093,11,1093,2,66161,5,3,2,3,71,2693,2,29,29131,1093,2,5,3,281,2,13,13,5,2,3,11,3,2,7,7,5,2,46145917691,3,66161,2,17,8039,11,2,23,5,3,2,3,...}. - Alexander Adamchuk (alex(AT)kolmogorov.com), Dec 03 2006
a(n) = A039951(n) for all n that are not of the form 4k+1. A039951(4k+1) = 2. - Alexander Adamchuk (alex(AT)kolmogorov.com), Dec 03 2006
Note that a(n) = 1093 for n = {2,4,16,256}, a(n) = 66161 for n = {6,36,216}, a(n) = 2693 for n = {12,144}, a(n) = 29 for n = {14,196}, a(n) = 281 for n = {20,400}. It appears that there is a pattern such that in many cases if a(n) = p then a(n^2) = p too. In some cases as for n = 6 a(n^3) = p too. - Alexander Adamchuk (alex(AT)kolmogorov.com), Dec 03 2006
|