A059957 Sum of number of distinct prime factors of n and n+1, or number of distinct prime factors of n(n+1) or of lcm(n,n+1).
1, 2, 2, 2, 3, 3, 2, 2, 3, 3, 3, 3, 3, 4, 3, 2, 3, 3, 3, 4, 4, 3, 3, 3, 3, 3, 3, 3, 4, 4, 2, 3, 4, 4, 4, 3, 3, 4, 4, 3, 4, 4, 3, 4, 4, 3, 3, 3, 3, 4, 4, 3, 3, 4, 4, 4, 4, 3, 4, 4, 3, 4, 3, 3, 5, 4, 3, 4, 5, 4, 3, 3, 3, 4, 4, 4, 5, 4, 3, 3, 3, 3, 4, 5, 4, 4, 4, 3, 4, 5, 4, 4, 4, 4, 4, 3, 3, 4, 4, 3, 4, 4, 3, 5, 5
Offset: 1
Examples
For n = 30030, n has 6 prime factors, 30031 = 59*509 so a(30030) = 6+2 = 8. For n = 30029, a(30029) = 1+6 = 7.
Links
- G. C. Greubel, Table of n, a(n) for n = 1..10000
- James East, Jitender Kumar, James D. Mitchell, and Wilf A. Wilson, Maximal subsemigroups of finite transformation and partition monoids, arXiv:1706.04967 [math.GR], 2017. [_Wilf A. Wilson_, Jul 21 2017]
Programs
-
Mathematica
Table[ PrimeNu[n*(n + 1)], {n,1,100}] (* G. C. Greubel, May 13 2017 *)
-
PARI
for(n=1,100, print1(omega(n*(n+1)), ", ")) \\ G. C. Greubel, May 13 2017
Formula
Extensions
Name corrected by Rick L. Shepherd, Apr 11 2023
Comments