login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A276269 a(n) = n + the largest (if n is even), or the smallest (if n is odd) prime factor of n if n > 1; and a(1)=1. 1

%I #6 Aug 26 2016 12:33:03

%S 1,4,6,6,10,9,14,10,12,15,22,15,26,21,18,18,34,21,38,25,24,33,46,27,

%T 30,39,30,35,58,35,62,34,36,51,40,39,74,57,42,45,82,49,86,55,48,69,94,

%U 51,56,55,54,65,106,57,60,63,60,87,118,65,122,93,66,66,70,77,134

%N a(n) = n + the largest (if n is even), or the smallest (if n is odd) prime factor of n if n > 1; and a(1)=1.

%C This is the underlying sequence for sequence A256393.

%C a(n) is never prime, since for n>1 it is alternatively divisible by A006530(n) then by A020639(n). This explains the existence of the sequences noted [p] in A256393 comments. There are also such [c] sequences where c is composite like for instance for c=8.

%o (PARI) a(n) = if (n==1, 1, my(f = factor(n)); if (n % 2, n + f[1,1], n + f[#f~, 1]));

%Y Cf. A006530 (Gpf), A020639 (Lpf), A256393.

%K nonn

%O 1,2

%A _Michel Marcus_, Aug 26 2016

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 13 10:14 EDT 2024. Contains 375904 sequences. (Running on oeis4.)