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!)
A339184 Number of partitions of n into two parts such that the larger part is a nonzero square. 2
0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,18
LINKS
FORMULA
a(n) = Sum_{i=1..floor(n/2)} c(n-i), where c is the square characteristic (A010052).
a(n) = Sum_{i=floor((n-1)/2)..n-2} c(i+1), where c is the square characteristic (A010052).
a(n) = A339186(n) - A339183(n).
EXAMPLE
a(8) = 1; The partitions of 8 into 2 parts are (7,1), (6,2), (5,3) and (4,4). Since 4 is the only nonzero square appearing as a largest part, a(8) = 1.
a(9) = 0; The partitions of 9 into 2 parts are (8,1), (7,2), (6,3) and (5,4). Since there are no nonzero squares among the largest parts, a(9) = 0.
MATHEMATICA
Table[Sum[Floor[Sqrt[n - i]] - Floor[Sqrt[n - i - 1]] , {i, Floor[n/2]}], {n, 0, 100}]
CROSSREFS
Cf. A010052, A339183 (smaller part is a nonzero square), A339186 (total nonzero squares).
Sequence in context: A339047 A347735 A204014 * A156839 A172299 A025453
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Nov 26 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 August 10 19:25 EDT 2024. Contains 375058 sequences. (Running on oeis4.)