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!)
A337101 Number of partitions of n into two positive parts (s,t), s <= t, such that the harmonic mean of s and t is an integer. 5
0, 1, 0, 1, 0, 1, 0, 2, 1, 1, 0, 1, 0, 1, 0, 2, 0, 3, 0, 1, 0, 1, 0, 2, 2, 1, 1, 1, 0, 1, 0, 4, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 1, 1, 0, 2, 3, 5, 0, 1, 0, 3, 0, 2, 0, 1, 0, 1, 0, 1, 1, 4, 0, 1, 0, 1, 0, 1, 0, 6, 0, 1, 2, 1, 0, 1, 0, 2, 4, 1, 0, 1, 0, 1, 0, 2, 0, 3, 0, 1, 0, 1, 0, 4, 0, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,8
COMMENTS
Number of solutions, (s,t,k), to s^2 + t^2 = k*n such that s + t = n, 1 <= s <= t and 1 <= k <= n-1. - Wesley Ivan Hurt, Oct 01 2020
LINKS
FORMULA
a(n) = Sum_{i=1..floor(n/2)} (1 - ceiling(2*i*(n-i)/n) + floor(2*i*(n-i)/n)).
a(n) = A004526(n) - A337102(n).
a(n) = Sum_{i=1..floor(n/2)} Sum_{k=1..n-1} [i^2 + (n-i)^2 = n*k], where [ ] is the Iverson bracket. - Wesley Ivan Hurt, Oct 01 2020
MATHEMATICA
Table[Sum[1 - Ceiling[2*i*(n - i)/n] + Floor[2*i*(n - i)/n], {i, Floor[n/2]}], {n, 100}]
Table[Sum[Sum[KroneckerDelta[(i^2 + (n - i)^2)/k, n], {k, n - 1}], {i, Floor[n/2]}], {n, 100}]
PROG
(PARI) A337101(n) = { my(u, t); sum(s=1, n\2, t = n-s; u = (s^2 + t^2); (!(u%n) && (u/n) <= n-1)); }; \\ Antti Karttunen, Dec 12 2021
CROSSREFS
Sequence in context: A117208 A276004 A133300 * A178779 A144451 A259287
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Aug 15 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 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)