A269304 a(n) = n + n/gpf(n) + 1, where gpf(n) is the greatest prime factor of n or 1 if n = 1.
3, 4, 5, 7, 7, 9, 9, 13, 13, 13, 13, 17, 15, 17, 19, 25, 19, 25, 21, 25, 25, 25, 25, 33, 31, 29, 37, 33, 31, 37, 33, 49, 37, 37, 41, 49, 39, 41, 43, 49, 43, 49, 45, 49, 55, 49, 49, 65, 57, 61, 55, 57, 55, 73, 61, 65, 61, 61, 61, 73, 63, 65, 73, 97, 71, 73, 69
Offset: 1
Examples
For n=18765, a(n)=18901. For n=196, a(n)=225 (225 is a square). For n=103156, a(n)=105673 (105673 is prime).
Links
- Cody M. Haderlie, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Table[n+n/FactorInteger[n][[-1,1]]+1,{n,100}]
-
PARI
gpf(n)=if(n>1, my(f=factor(n)[,1]); f[#f], 1) a(n)=n + n/gpf(n) + 1 \\ Charles R Greathouse IV, Feb 22 2016
Comments