Page 1 of 6

MAths problem... can u answer it?

Posted: Mon Jan 12, 2009 5:41 pm
by Sufian
Find the smallest number which can be
multiplied by 112 to give a square number.

talking trash lah... if u can, good. Sec 1 question. haha

Posted: Mon Jan 12, 2009 6:51 pm
by Bryan
iya so easy

Posted: Mon Jan 12, 2009 7:10 pm
by Twxian
no answer no talk....

Posted: Mon Jan 12, 2009 7:18 pm
by Twxian
0 7 28 63 .....

Re: MAths problem... can u answer it?

Posted: Mon Jan 12, 2009 7:24 pm
by galapogos
Sufian wrote:Find the smallest number which can be
multiplied by 112 to give a square number.

talking trash lah... if u can, good. Sec 1 question. haha

Code: Select all

#include <stdio.h>
#include <math.h>
void main()
{
  const int num = 112;
  int i;
  double result;
  for (i=1;i<112;i++)
  {
    result = sqrt(i*num);
    if (result == floor(result))
      break;
  }
  printf("The smallest number which can be multiplied by %d to give a square number is %d\n", num, i);
}

Posted: Mon Jan 12, 2009 7:35 pm
by Sufian
haha....

ok lah.. i show u how to derive the answer...

112
= 2 X 2 X 2 X 2 X 7
= (2 X 2 X 7) X (2 X 2)

so... from the above.... answer is?

Posted: Mon Jan 12, 2009 7:36 pm
by nakorius
MKLGHLG! :twisted: :twisted: :oops:

Posted: Mon Jan 12, 2009 7:36 pm
by Sufian
huh??

Posted: Mon Jan 12, 2009 7:52 pm
by manyu882
Sufian wrote:haha....

ok lah.. i show u how to derive the answer...

112
= 2 X 2 X 2 X 2 X 7
= (2 X 2 X 7) X (2 X 2)

so... from the above.... answer is?
112
= 2 X 2 X 2 X 2 X 7
= (2 X 2 X 7) X (2 X 2) (7)


ans 7

got prize? 8)

Re: MAths problem... can u answer it?

Posted: Mon Jan 12, 2009 7:53 pm
by nakorius
galapogos wrote:
Sufian wrote:Find the smallest number which can be
multiplied by 112 to give a square number.

talking trash lah... if u can, good. Sec 1 question. haha

Code: Select all

#include <stdio.h>
#include <math.h>
void main()
{
  const int num = 112;
  int i;
  double result;
  for (i=1;i<112;i++)
  {
    result = sqrt(i*num);
    if (result == floor(result))
      break;
  }
  printf("The smallest number which can be multiplied by %d to give a square number is %d\n", num, i);
}
Basket... use C programming to solve it ah? :shock:

Posted: Mon Jan 12, 2009 7:54 pm
by manyu882
eh post somemore math qn

Posted: Mon Jan 12, 2009 8:09 pm
by galapogos
My program already calculates and prints out the answer lor. Don't believe save it as main.c, boot up in Linux and run "gcc main.c -o main -lm" and then run "./main" and see what it prints out. Don't need to be 112 or square root or multiplication also. Can solve for every number and every operation. Power right? :D

Posted: Mon Jan 12, 2009 8:16 pm
by manyu882
galapogos wrote:My program already calculates and prints out the answer lor. Don't believe save it as main.c, boot up in Linux and run "gcc main.c -o main -lm" and then run "./main" and see what it prints out. Don't need to be 112 or square root or multiplication also. Can solve for every number and every operation. Power right? :D
chim. i learn c prog before but i throw back everything to lecturer liao. tt one u post out suddenly i remember what i learn.

Posted: Mon Jan 12, 2009 8:48 pm
by Derek
Interestingly a study was done which showed that the reason why Asians are better at Math than Westerners is because we don't give up as quickly. The correlation was too strong to ignore.

From the book Outliers by Malcom Gladwell. :)

Posted: Mon Jan 12, 2009 9:08 pm
by lips
sec 1 qn? maybe i should retake my psle

Posted: Mon Jan 12, 2009 9:11 pm
by Steph_Parker
never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not :?

Posted: Mon Jan 12, 2009 9:23 pm
by Weib
Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not :?
you forgot to add that you're fat too =)

Posted: Mon Jan 12, 2009 9:27 pm
by Steph_Parker
Weib wrote:
Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not :?
you forgot to add that you're fat too =)
eh
THANKS FOR REMINDING ME THAT AH.
TRYING TO BE FUNNY ISSIT.
ok la ok la, am fat lah =(

Posted: Mon Jan 12, 2009 9:51 pm
by Derek
Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not :?
That is actually a misnomer. The people who are good at math are good because they try harder and more often than those who are supposingly sucky at math.

Posted: Mon Jan 12, 2009 9:53 pm
by Weib
Steph_Parker wrote:
Weib wrote:
Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not :?
you forgot to add that you're fat too =)
eh
THANKS FOR REMINDING ME THAT AH.
TRYING TO BE FUNNY ISSIT.
ok la ok la, am fat lah =(
You like to call yourself fat then i acknowledge lo..
besides take a bigger one to call out smaller one right :wink:

Posted: Mon Jan 12, 2009 10:06 pm
by Steph_Parker
Weib wrote:
Steph_Parker wrote:
Weib wrote:
Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not :?
you forgot to add that you're fat too =)
eh
THANKS FOR REMINDING ME THAT AH.
TRYING TO BE FUNNY ISSIT.
ok la ok la, am fat lah =(
You like to call yourself fat then i acknowledge lo..
besides take a bigger one to call out smaller one right :wink:
xiao pang =(

Re: MAths problem... can u answer it?

Posted: Mon Jan 12, 2009 10:07 pm
by Twxian
galapogos wrote:
Sufian wrote:Find the smallest number which can be
multiplied by 112 to give a square number.

talking trash lah... if u can, good. Sec 1 question. haha

Code: Select all

#include <stdio.h>
#include <math.h>
void main()
{
  const int num = 112;
  int i;
  double result;
  for (i=1;i<112;i++)
  {
    result = sqrt(i*num);
    if (result == floor(result))
      break;
  }
  printf("The smallest number which can be multiplied by %d to give a square number is %d\n", num, i);
}
wah chius use C... i ish use php.... :oops:

Posted: Mon Jan 12, 2009 10:33 pm
by manyu882
Derek wrote:
Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not :?
That is actually a misnomer. The people who are good at math are good because they try harder and more often than those who are supposingly sucky at math.

eh the book got say something along this line or not.

if never solve the question will never feel the satisfaction. then solve already want to solve somemore question. until the brain is tired.

Re: MAths problem... can u answer it?

Posted: Mon Jan 12, 2009 10:34 pm
by galapogos
Twxian wrote:
galapogos wrote:
Sufian wrote:Find the smallest number which can be
multiplied by 112 to give a square number.

talking trash lah... if u can, good. Sec 1 question. haha

Code: Select all

#include <stdio.h>
#include <math.h>
void main()
{
  const int num = 112;
  int i;
  double result;
  for (i=1;i<112;i++)
  {
    result = sqrt(i*num);
    if (result == floor(result))
      break;
  }
  printf("The smallest number which can be multiplied by %d to give a square number is %d\n", num, i);
}
wah chius use C... i ish use php.... :oops:
i ish old school, dunno php wan.

Posted: Mon Jan 12, 2009 11:24 pm
by Sufian
I posted this question because I realise that when posting this to the sec 3, almost half of them asked for more clue. Thus, being stuck because cannot figure out the 1st step.

During our time in school (Goi, Xian, me, Ben,etc), I believe these questions are the norm.

Posted: Mon Jan 12, 2009 11:27 pm
by galapogos
No leh, mine usually all just a lot of brute force calculation.

Posted: Mon Jan 12, 2009 11:29 pm
by Twxian
yah a lot of things can solve brute force or working backwards one
no need to think so much

Posted: Tue Jan 13, 2009 12:33 am
by kuro
what is square number

Posted: Tue Jan 13, 2009 12:34 am
by galapogos
i.e. an integer whose square root is also an integer.

Posted: Tue Jan 13, 2009 1:03 am
by h
...how about this:

In chess, is it possible for the knight to go (by allowable moves) from the lower left-hand corner of the board to the upper right-hand corner and in the process to light exactly once on each square?

note: look at a chessboard, then it's easy.