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!)
A337363 a(n) = Sum_{d1|n, d2|n, d1<d2} (1 - [d1 + 1 = d2]), where [ ] is the Iverson bracket. 2
0, 0, 1, 2, 1, 4, 1, 5, 3, 5, 1, 12, 1, 5, 6, 9, 1, 13, 1, 13, 6, 5, 1, 25, 3, 5, 6, 14, 1, 25, 1, 14, 6, 5, 6, 33, 1, 5, 6, 26, 1, 25, 1, 14, 15, 5, 1, 42, 3, 14, 6, 14, 1, 26, 6, 26, 6, 5, 1, 61, 1, 5, 15, 20, 6, 26, 1, 14, 6, 27, 1, 62, 1, 5, 15, 14, 6, 26, 1, 43, 10, 5, 1, 62 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
Number of pairs of divisors of n, (d1,d2), with d1 < d2 such that d1 and d2 are nonconsecutive integers. For example, the 4 pairs for a(6) are (1,3), (1,6), (2,6) and (3,6).
Also, the number of distinct nonsquare rectangles that can be made using any divisors of n as side lengths and whose length is never one more than its width.
LINKS
FORMULA
a(n) = A337362(n) - A000005(n).
a(n) = A066446(n) - A129308(n). - Ridouane Oudra, Apr 16 2023
MATHEMATICA
Table[Sum[Sum[(1 - KroneckerDelta[i + 1, k]) (1 - Ceiling[n/k] + Floor[n/k]) (1 - Ceiling[n/i] + Floor[n/i]), {i, k - 1}], {k, n}], {n, 100}]
Table[Count[Subsets[Divisors[n], {2}], _?(#[[2]]-#[[1]]>1&)], {n, 90}] (* Harvey P. Dale, Mar 11 2023 *)
PROG
(PARI) a(n) = sumdiv(n, d1, sumdiv(n, d2, (d1<d2) && (d1 + 1 != d2))); \\ Michel Marcus, Aug 25 2020
CROSSREFS
Sequence in context: A006306 A322100 A277100 * A339243 A214579 A083711
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Aug 24 2020
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 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)