Slightly odd

S n = i = 1 n n i \large S_n=\sum_{i=1}^n \left \lfloor{\frac{n}{i}}\right \rfloor

S n S_n is defined as of above, for all positive integers n n . Determine the number of positive integers 1 < a < 1616 1<a<1616 for which the value of the expression

S a 1 + S a \large S_{a-1}+S_{a}

is an odd positive integer.


The answer is 39.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Abhishek Sinha
Sep 13, 2015

First note that S n S_n denotes (equivalence follows by a simple double-counting argument) the sum of number of divisors of natural numbers up to the number n n , i.e. S n = k = 1 n σ 0 ( k ) . S_n=\sum_{k=1}^{n}\sigma_0(k). Hence S a 1 + S a S_{a-1}+S_{a} will be odd iff σ 0 ( a ) \sigma_0(a) is odd, i.e., a a is a perfect square. Now there are 39 39 perfect squares in the given range.

Can you please tell me how the summation of the number of divisors is equal to the summation of greatest integer function of [n / i]

Wasif Jawad Hussain - 5 years, 9 months ago

Log in to reply

Think of it - how many numbers from 1 1 to n n does a number i i divide? Clearly, the answer is n i \lfloor \frac{n}{i} \rfloor .

Abhishek Sinha - 3 years, 9 months ago
Rajdeep Brahma
Jun 11, 2018

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...