A316990 Smallest exponent m of n such that A289280(n) | n^m.
2, 2, 2, 2, 3, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 3, 2, 2, 3, 5, 2, 3, 2, 5, 2, 3, 2, 5, 2, 2, 4, 6, 2, 2, 2, 6, 4, 2, 2, 4, 2, 3, 2, 6, 2, 3, 2, 6, 4, 3, 2, 6, 2, 2, 4, 6, 2, 3, 2, 6, 2, 2, 3, 3, 2, 4, 4, 4, 2, 2, 2, 7, 4, 4, 2, 4, 2, 2, 2, 7, 2, 3, 3, 7, 5, 2, 2, 5, 2, 4, 5, 7, 3, 3, 2, 4, 2, 2, 2, 3, 2, 3, 3, 7
Offset: 2
Keywords
Examples
For n = 2, A289280(n) = 4 = 2^2, the square of n = 2: thus a(2) = 2. For n = 8, A289280(n) = 16 = 2^4; 2^4 | 8^2, thus a(8) = 2. For n = 10, the least k > 10 that divides 10^e for e > 1 is 16. 16 | 10^4, thus a(n) = 4.
Links
- Michael De Vlieger, Table of n, a(n) for n = 2..10000
Programs
-
Mathematica
Table[If[PrimePowerQ@ n, 2, Block[{k = n + 1, m = 1}, While[PowerMod[n, k, k] != 0, k++]; While[PowerMod[n, m, k] != 0, m++]; m]], {n, 2, 106}]
Comments