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!)
A060685 Largest difference between consecutive divisors (ordered by size) of 2n+1. 5
2, 4, 6, 6, 10, 12, 10, 16, 18, 14, 22, 20, 18, 28, 30, 22, 28, 36, 26, 40, 42, 30, 46, 42, 34, 52, 44, 38, 58, 60, 42, 52, 66, 46, 70, 72, 50, 66, 78, 54, 82, 68, 58, 88, 78, 62, 76, 96, 66, 100, 102, 70, 106, 108, 74, 112, 92, 78, 102, 110, 82, 100, 126, 86, 130, 114 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Equivalently, a(2n+1) = 2n+1 - (2n+1)/p, where p = A020639(2n+1) is the smallest prime divisor of 2n+1.
The even case is trivial: for 2k the largest difference is k.
Successively greater values of a(n) occur when 2n+1 is prime.
LINKS
FORMULA
a(n) = A060681(2n+1)
EXAMPLE
For n=17, 2n+1=35; divisors={1,5,7,35}; differences={4,2,28}; a(17) = largest difference = 28 = 35 - 35/5.
MATHEMATICA
a[n_] := 2n+1-(2n+1)/FactorInteger[2n+1][[1, 1]]
(* Second program: *)
Table[Max@ Differences@ Divisors@ # &[2 n + 1], {n, 66}] (* Michael De Vlieger, Jul 15 2017 *)
CROSSREFS
Cf. A060681.
Sequence in context: A248835 A053568 A037225 * A073353 A254734 A254733
KEYWORD
nonn
AUTHOR
Labos Elemer, Apr 19 2001
EXTENSIONS
Edited by Dean Hickerson, Jan 22 2002
STATUS
approved

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 April 24 10:11 EDT 2024. Contains 371935 sequences. (Running on oeis4.)