A218621 a(n) = unique divisor d of n such that d + (n/d - 1)/2 is minimal and integral.
1, 2, 1, 4, 1, 2, 1, 8, 3, 2, 1, 4, 1, 2, 3, 16, 1, 2, 1, 4, 3, 2, 1, 8, 5, 2, 3, 4, 1, 6, 1, 32, 3, 2, 5, 4, 1, 2, 3, 8, 1, 6, 1, 4, 5, 2, 1, 16, 7, 10, 3, 4, 1, 6, 5, 8, 3, 2, 1, 4, 1, 2, 7, 64, 5, 6, 1, 4, 3, 10, 1, 8, 1, 2, 5, 4, 7, 6, 1, 16, 9, 2, 1, 4, 5
Offset: 1
Keywords
Links
- T. D. Noe, Table of n, a(n) for n = 1..2048
Programs
-
Mathematica
Table[d = Divisors[n]; mn = Infinity; best = 0; Do[q = i + (n/i - 1)/2; If[IntegerQ[q] && q < mn, mn = q; best = i], {i, d}]; best, {n, 100}] (* T. D. Noe, Feb 21 2013 *)
Comments