The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A297024 Sum of the smaller parts of the partitions of n into two parts such that the smaller part does not divide the larger. 4
0, 0, 0, 0, 2, 0, 5, 3, 6, 7, 14, 5, 20, 18, 19, 21, 35, 24, 44, 33, 44, 52, 65, 42, 72, 75, 78, 77, 104, 78, 119, 105, 121, 133, 140, 116, 170, 168, 173, 160, 209, 177, 230, 213, 220, 250, 275, 224, 292, 282, 304, 305, 350, 312, 361, 342, 383, 403, 434, 357 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
FORMULA
a(n) = Sum_{i=1..floor(n/2)} i * (1-(floor(n/i)-floor((n-1)/i))).
EXAMPLE
a(10) = 7; the partitions of 10 into two parts are (9,1), (8,2), (7,3), (6,4), (5,5). The sum of the smaller parts that do not divide their larger counterparts is then 3 + 4 = 7.
MATHEMATICA
Table[Sum[i (1 - (Floor[n/i] - Floor[(n - 1)/i])), {i, Floor[n/2]}], {n, 100}]
f[n_] := Plus @@ Select[ Range[n/2], !MemberQ[Divisors[n], #] &]; Array[f, 60] (* Robert G. Wilson v, Dec 23 2017 *)
Table[Total[Select[IntegerPartitions[n, {2}], Mod[#[[1]], #[[2]]]!=0&][[All, 2]]], {n, 60}] (* Harvey P. Dale, Dec 17 2021 *)
PROG
(GAP) List(List(List([1..10^2], n-> Partitions(n, 2)), i -> Filtered(i, j -> j[1] mod j[2] <> 0)), m->Sum(m, k -> k[2])); # Muniru A Asiru, Jan 28 2018
CROSSREFS
Cf. A296955.
Sequence in context: A121705 A071782 A328495 * A356215 A107363 A154954
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Dec 23 2017
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 June 2 20:31 EDT 2024. Contains 373045 sequences. (Running on oeis4.)