cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A060685 Largest difference between consecutive divisors (ordered by size) of 2n+1.

This page as a plain text file.
%I A060685 #14 Jul 16 2017 02:45:31
%S A060685 2,4,6,6,10,12,10,16,18,14,22,20,18,28,30,22,28,36,26,40,42,30,46,42,
%T A060685 34,52,44,38,58,60,42,52,66,46,70,72,50,66,78,54,82,68,58,88,78,62,76,
%U A060685 96,66,100,102,70,106,108,74,112,92,78,102,110,82,100,126,86,130,114
%N A060685 Largest difference between consecutive divisors (ordered by size) of 2n+1.
%C A060685 Equivalently, a(2n+1) = 2n+1 - (2n+1)/p, where p = A020639(2n+1) is the smallest prime divisor of 2n+1.
%C A060685 The even case is trivial: for 2k the largest difference is k.
%C A060685 Successively greater values of a(n) occur when 2n+1 is prime.
%H A060685 Michael De Vlieger, <a href="/A060685/b060685.txt">Table of n, a(n) for n = 1..10000</a>
%F A060685 a(n) = A060681(2n+1)
%e A060685 For n=17, 2n+1=35; divisors={1,5,7,35}; differences={4,2,28}; a(17) = largest difference = 28 = 35 - 35/5.
%t A060685 a[n_] := 2n+1-(2n+1)/FactorInteger[2n+1][[1, 1]]
%t A060685 (* Second program: *)
%t A060685 Table[Max@ Differences@ Divisors@ # &[2 n + 1], {n, 66}] (* _Michael De Vlieger_, Jul 15 2017 *)
%Y A060685 Cf. A060681.
%K A060685 nonn
%O A060685 1,1
%A A060685 _Labos Elemer_, Apr 19 2001
%E A060685 Edited by _Dean Hickerson_, Jan 22 2002