A115090 a(n) = A115074(n) - A117183(n).
0, 0, 0, 1, 0, 1, 3, 1, 0, 0, 5, 0, 1, 3, 9, 2, 1, 0, 3, 11, 1, 5, 3, 4, 0, 15, 1, 2, 17, 3, 0, 5, 9, 3, 21, 1, 5, 8, 3, 11, 1, 5, 27, 10, 3, 0, 29, 0, 5, 0, 9, 2, 15, 5, 1, 4, 35, 3, 17, 14, 11, 3, 1, 39, 5, 0, 16, 41, 2, 9, 3, 21, 45, 4, 1, 5, 9, 3, 15, 20, 11, 51, 1, 9, 5, 2, 17, 27, 11, 57, 3, 9, 0
Offset: 1
Keywords
Examples
12, the 4th nonsquarefree positive integer, is 2^2 * 3. 3 is the largest prime dividing 12. 2 is the smallest prime dividing 12. So a(4) = 3 - 2 = 1.
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
(Max@# - Min@#) & /@ (First /@ FactorInteger@# & /@ Select[ Range@243, !SquareFreeQ@# &]) (* Robert G. Wilson v, Mar 09 2006 *)
Formula
Extensions
More terms from Robert G. Wilson v, Mar 09 2006
Comments