Why Am I Off by One in My Mathematics Olympiad Answer?

Click For Summary
SUMMARY

The discussion centers on a mathematical problem involving the sequence defined by \( a_n = \left\lfloor \frac{n}{\sqrt{n}} \right\rfloor \) and its behavior around perfect squares. Participants analyze the relationship between \( a_n \) and \( a_{n+1} \) for values of \( n \) ranging from 100 to 121 and up to 2010. The conclusion is that there are 43 instances where \( a_n > a_{n+1} \), specifically at perfect squares, confirming the correctness of the calculations presented.

PREREQUISITES
  • Understanding of floor functions and their properties
  • Familiarity with square roots and perfect squares
  • Basic programming skills in C for implementing mathematical algorithms
  • Knowledge of mathematical sequences and inequalities
NEXT STEPS
  • Explore the properties of floor functions in mathematical sequences
  • Learn about the distribution of perfect squares and their implications in number theory
  • Study the implementation of mathematical algorithms in C, focusing on optimization techniques
  • Investigate further mathematical problems involving sequences and inequalities
USEFUL FOR

Mathematics enthusiasts, competitive programmers, and students preparing for mathematics Olympiads who seek to deepen their understanding of sequences and inequalities.

rajatgl16
Messages
54
Reaction score
0
in the ques that i have attached as image with this thread..
I did it as an can be solved to \sqrt{}n by rationalising it.

So as squre root of every natural no. 'n' is smaller than squre root of 'n+1' then in this ques. possible values comes out to be zero. Am i Right?
 

Attachments

  • scan0007-crop.jpg
    scan0007-crop.jpg
    21.4 KB · Views: 529
Physics news on Phys.org
hi rajatgl16! :smile:

(have a square-root: √ :wink:)

hint: try an for n = 100 up to 121 :smile:
 
I;m not getting what you mean. Please elaborate
 
Check for which n from 100..121 range an > an+1.

Do the same for any other range bounded by k2 and (k+1)2.

Look if there is some pattern.

If there is no pattern, I have no idea what tiny-tim aims at.
 
#include <stdio.h>
#include <math.h>
#define MAX 2010

int gint(float x)
{
int n;
n=x;
return n;
}

int main()
{
int a[MAX], j,k, i, count1=0;
for(i=1; i<=MAX; i++){
k=gint(sqrt(i));
a=gint(i/k);
if(a[i-1]>a){
count1++;
printf("a(%d)=%d > a(%d)=%d\n", i-1,a[i-1], i, a);
}
else continue;
}
printf("%d", count1-1);}answer comes out to be 42
 
rajatgl16 said:
in the ques that i have attached as image with this thread..
I did it as an can be solved to \sqrt{n} by rationalising it.

So as squre root of every natural no. 'n' is smaller than squre root of 'n+1' then in this ques. possible values comes out to be zero. Am i Right?

I'm thinking that a_n &gt; a_{n+1} \forall (n+1)^2 \in \mathbb{Z}.

There are \left\lfloor\sqrt{2010}\right\rfloor = 44 perfect squares less than 2010, so I get 43 different values for n such that an > an+1.
 
Mandelbroth said:
I'm thinking that a_n &gt; a_{n+1} \forall (n+1)^2 \in \mathbb{Z}.

There are \left\lfloor\sqrt{2010}\right\rfloor = 44 perfect squares less than 2010, so I get 43 different values for n such that an > an+1.
Do you realize that you've just responded to a pretty old thread ?
 
SammyS said:
Do you realize that you've just responded to a pretty old thread ?
Yes, I noticed. I'd like to know why I'm off by one from naveeniitkgp's answer, so I decided to respond here rather than make a new thread linking back to this one.

Is that bad? If so, I apologize...
 
Mandelbroth said:
Yes, I noticed. I'd like to know why I'm off by one from naveeniitkgp's answer, so I decided to respond here rather than make a new thread linking back to this one.

Is that bad? If so, I apologize...
No. That's not necessarily bad.

Your answer is correct.
 

Similar threads

  • · Replies 21 ·
Replies
21
Views
2K
Replies
2
Views
3K
Replies
13
Views
3K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
2
Views
3K
Replies
17
Views
3K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K