Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 Re: Help Me ! » Light bulbs and switches » 2018-01-13 12:58:59

Thank you very much! Great solution!

#2 Re: Help Me ! » Light bulbs and switches » 2018-01-13 01:35:52

@Alg Num Theory and Bob Bundy: Thanks a lot for your solutions.

@Alg Num Theory: Can you explain a bit further why we can't succeed for n ≡ 3 or n ≡ 2?
I have done some examples but don't understand the generic conclusion.

Thank you.

#3 Help Me ! » Light bulbs and switches » 2018-01-11 20:13:41

chen.aavaz
Replies: 6

There are n light bulbs corresponding 1-to-1 with n switches in a room. Initially all the lights are off.
n people enter the room one by one; the 1st of them switching 1 switch at random, the 2nd 2 switches and so on, until the nth person who switches n switches. Each person can only switch each switch once at maximum. Is it always possible for all the lamps to be turned on at the end of the process? Justify.

A basic attempt:
Total number of switchings by the n people: 1+2+…+n = n*(n+1)/2 = always even
For all lights to be on after the whole process, each of them must have been switched by an odd number of times.
So this is a sum of odd numbers, and if n:odd then the total is odd, which is contradictory with the above.

Anyone can help me for a more "mathematical" solution? Also, how do we use the restriction that "Each person can only switch each switch once at maximum"?

Many thanks in anticipation!

#5 Re: Help Me ! » 3 sandwiches with 4 ingredients. » 2017-06-13 19:33:09

I am getting 48 instead of 24. I agree for all the rest.

p,q,r,    p,q    r,s
p,q,r,    q,r    p,s
p,q,r,    p,r    q,s
   and then:
p,q,r,    p,s    q,s
p,q,r,    p,s    q,r
p,q,r,    p,s    r,s
then the same for
p,q,r,    q,s…
and then the same for
p,q,r,    r,s
So a total of 12 for p,q,r and therefore 48 for all 4 permutations for the first part (3C4).

#6 Re: Help Me ! » 3 sandwiches with 4 ingredients. » 2017-06-13 09:53:49

@mr.wong: Thanks for the reply.
Can you please explain why (ii) is 4 C 3  *  3 C 1  * 2 C 1?
To me they are 48.
Also, if we rotate the 3 sandwiches (let's say that each sandwich is A, B and C), we also have 3!=6 different ways, so the total to me is 58*6=348

#7 Re: Help Me ! » 3 sandwiches with 4 ingredients. » 2017-05-28 09:51:58

@mr.wong: Thank you. So what is the total of possible ways?

mr.wong wrote:

Hi   chen. aavaz ,

The  no.  of  ingredients  contained  in  each  sandwich  should  be 
either  2  or  3  , but  excluding  the  case  of  any  3  ingredients  in  all 
the  3  sandwiches .
Thus  the  possible  cases  may  be  divided  into  3  types :
(i)  ( 3 , 3 , 2 )  i.e.  2  sandwiches  both  with  3  ingredients  while 
       the  remaining  sandwich  with  only  2  ingredients .
(ii)  ( 3 , 2 , 2 )  , 1  sandwich  with  3  ingredients  while  the  2 
       remaining  sandwiches  both  with  2  ingredients .
(iii)  ( 2 , 2 , 2 ) , all  the  3  sandwiches  each  with  2  ingredients .

#8 Re: Help Me ! » 3 sandwiches with 4 ingredients. » 2017-05-20 04:18:47

Yes, thank you!
Sorry, English is not my mother tongue!

Agnishom wrote:

How many different sandwiches can we make?

I think you want to ask "In how many ways can we make these system of 3 sandwiches while satisfying the constraints?"

#9 Help Me ! » 3 sandwiches with 4 ingredients. » 2017-05-19 22:07:04

chen.aavaz
Replies: 10

We want to make 3 sandwiches using some choices from 4 different ingredients, but with the following rules:
None of the 4 can be used in all 3 sandwiches and, for any two sandwiches, there is at least one ingredient at both of them but not at the 3rd one. In how many ways can we make these 3 sandwiches while satisfying the constraints?

#10 Re: Help Me ! » Local fruit store » 2017-04-09 04:55:03

Great solution!
bobbym, silly question, where did the first and third equation derive from?

bobbym wrote:

Hi phrontister;

Okay, thanks for coming in. See you later.

Hi chen.aavazi;

Calling x = apples and y = bananas, we can reduce the system down to:

A)

100 - x > 3 y

3 y > 4 x

4 x > 100 - y

We can now graphically solve for the answer, I used Geogebra.

http://i.imgur.com/4A8ZlQC.png

The answer lies in the small darker triangle and must be an integer for (x,y). That reduces down the possibilities to just a few, as a matter of fact there is just one integer coordinate in there.

We can go a bit further with a trick that is used in numerical work which I invented?!

The three inequalities in A) can be changed to equations with the addition of what I call a slack variable... This is a term used in linear optimization but I give it an added meaning.

If 100 - x > 3 y  we only have to add something to the RHS to pick up the slack. I add e ( slack variable) which balances the inequality and gives us the equality of 100 - x = 3 y + e. We do that with all 3 inequalities and hope for the best.

100 - x = 3 y + e

3 y = 4 x + e

4 x = 100 - y + e

this can be solved by ordinary means

x = 19.0476, y = 26.1905, e = 2.38095

Remembering that x = apples and y equals bananas we can guess and try the closest integers and get apples = 19 and bananas = 26. We test to see that we are right and we are done!

#11 Re: Help Me ! » Local fruit store » 2017-04-08 23:55:21

Dear bobbym,
If this is programming code, sorry but I am not familiar with it smile



bobbym wrote:

Hi phrontister;

#12 Re: Help Me ! » Local fruit store » 2017-04-08 23:52:21

Dear Phrontister,
No this is not homework but a proper mathematical solution would be appreciated.

Here are some ideas to share:
If b=banana, a=apple and p=peach, obviously
b+a+p=100 and all 3 are integers (because there don't exist any coins with values <1 cent).
Also:
p>2b
3b>4a
3a>p

Since p>2b and b>=1, then p must be >=3.
If 3a>p, then a>1, so a>=2.
3b>4a so 3b>8 so b>=3. Then again (see above) p >=7
Since p<3a and p>=7, then a>=3.
3b>4a so 3b>12 so b>4 so b>=5
and so on.
I don't know though how to express all these in a mathematical way.

#13 Help Me ! » Local fruit store » 2017-04-08 20:46:12

chen.aavaz
Replies: 27

A guy bought one banana, one apple and one peach from the local fruit market and paid 1 dollar for all three.
1 peach costs more than 2 bananas, 3 bananas cost more than 4 apples and 3 apples cost more than 1 peach. Can you find the value of each fruit?

#14 Re: Help Me ! » Movement of flea » 2017-02-20 08:25:03

I think I am beginning to understand:
See image here

First of all, the flea moves in jumps, on a straight line and to the same direction (I am just thinking out loud...).
Each student observes the flea for exactly one minute and during this minute, it has made, say, n jumps of x centimeters each, with total length n*x=1m.
The last jump has not yet settled within the observation minute, and so it has not been accounted during the 1st student's observation. Similarly, since the second student only sees the flea once the previous jump settles down, this jump is not accounted to his minute either. So again, he observes n jumps of x centimeters each (assuming that the jumps are of equal length). Yes, I know, too many assumptions, but I am running out of ideas!!
So now the question lies to determine the maximums and minimums.

Clearly n>=1
Also x <= 1m because if x>1m then each jump would never settle within the observation minute, so the students would not see the flea to move by 1m.

As we see in my draft drawing, the small portion of the "unfinished" jump (which is obviously <x) gradually moves towards the right and then there is another unfinished jump which begins right before the end of the 2nd minute.

...I don't know how to continue, unless we make some more assumptions, like, for example, that the minimum x is, say, 1 centimeter?

Any help, anyone?

#15 Maths Is Fun - Suggestions and Comments » Image upload » 2017-02-20 07:40:44

chen.aavaz
Replies: 3

Sorry guys, it may be a silly question, but how do I upload an image I have in my PC?

#16 Re: Help Me ! » Two-blocks number » 2016-05-14 05:19:54

Yes I did it in Excel and filtered out the invalid values, then deleted them.
I had come to the point where the only acceptable value of k=6 but could not find a after this! That's because a turned out to be a huge number!

You did a great job!

thickhead wrote:

Hi chen.aavaz,
I am glad that it fits well.
I found it by actual division of (10^n+k)/(k+1)^2
since k has to be low to meet demands of n I chose least possible value of k=6. denom=49
We do not know n.we know that with last remainder of 10000..../49 ,6 is to be appended to give a multiple of 49 . clearly it is 196.So we should look out for remainder 19. In my casio fx-825X calculator there is a button a b/c for integer division which gives dividend and remainder. Start with 100/49 = gives 2\frac {2}{49} remainder is not 19. To continue store it in memory and multiply by 10 ,look at remainder ,replace the number in memory by this number and go on multiplying by 10 until it gives decimal number.this is due to the ceiling on such operation.now recall the number in memory, write down integer part of division on paper (20408 in my calculation) and restart with remainder 8 and 0 to the right i.e 80 divide by 49 the same way from this batch I get integer as 1632 which you write on the right hand side of previous part(20408) and remainder 32 . continue the process until you get remainder of 19. Append 6 to the right and the dividend is 196/49=4 which is the last digit of number "a". i had done this much of work and posted it. I did not even calculate "b".I left it to chen.aavaz. He must have had horrible time for (a+b)^2.

If you find calculator too tiresome you can try excel.
start with a series 100. 1000.10000,100000 on a column "a"say. in the next column use=quotient(a1,49) and in column c =mod(a1,49). Copy the formula to lower cells. however after a few cells down the calculation fails. Note down the last quotient and erase all failed values. and start with new series say 80,800,8000 etc (if 8 was the last remainder) continue the process until you spot remainder=19.

#17 Re: Help Me ! » Two-blocks number » 2016-05-14 02:40:04

It is.

a=20408163265306122448979591836734694
k=6
b=122448979591836734693877551020408164
c=20408163265306122448979591836734694122448979591836734693877551020408164=
(142857142857142857142857142857142858)^2=(20408163265306122448979591836734694+122448979591836734693877551020408164)^2

bobbym wrote:

Hi;

Can not verify that. I do not think that is correct. What is your a and b?

#18 Re: Help Me ! » Two-blocks number » 2016-05-14 00:13:14

YESSSSSSSSSSSSSSSSSS!!!

thickhead wrote:

hurrah!! Found a number.
a=20408163265306122448979591836734694
k=6
utilities used;scientific calculator, pen ,paper and some grey cells.
Please check whether it satisfies all the conditions.

#19 Re: Help Me ! » Two-blocks number » 2016-05-13 19:54:33

Got it, thanks.
I also think k must have more than 2 digits.


thickhead wrote:
chen.aavaz wrote:

Yes, you are right about n.
Why k cannot be odd?

Also, from the properties of perfect squares, the denominator cannot end in 2,3,7 or 8.

But I don't want to mislead you because there might be an easier solution!
My understanding, though, is that the only way to solve it is to somehow limit the boundaries and do some tests.
I know that the number we are looking for is really big...

thickhead wrote:

Hi, chen.aavaz,
n should be the the number of digits of 'b" ,not "a".
I can only say that 'k" can not be an odd number.
So computational work is reduced by 50%

If k is odd, 1+k  & (1+k)^2 are  even but 10^n+k is odd. An odd number can not be an integrral multiple of an even number.

#20 Re: Help Me ! » Two-blocks number » 2016-05-13 08:34:07

Very likely.
We must somehow set the boundaries.
There is also one more condition: n is the number of digits of a*k, thus a, n and k are not totally independent.

Relentless wrote:

Having trouble finding any more integer results. It seems likely that a is bigger than 10^12....

Let me know if the below are correct:
Let's examine k=1:
It must be a*10^n+a=(2a)^2 --> a*(10^n+1)=4*a^2 --> 10^n+1 must be divisible by 4, which is not possible, therefore k cannot be 1.
Similarly it cannot be 2 because then 10^n+2 must be divisible by 9, impossible.
It cannot be 3 because 10^n+3 must be divisible by 16,
neither 4, neither 5.

#21 Re: Help Me ! » Two-blocks number » 2016-05-13 07:51:30

@Relentless: what you have done would be correct if there weren't the 0 in the middle!

#22 Re: Help Me ! » Two-blocks number » 2016-05-13 07:49:43

The problem is as stated in my first post. Also read my reply to Bobbym.



Relentless wrote:

Hi, I don't understand... is the problem not just to choose three positive integers such that a=(k+10^n)/(k+1)^2 ?

#23 Re: Help Me ! » Two-blocks number » 2016-05-13 07:34:17

Why do you put the zero in-between? The two numbers a and b must be appended without any other digit in the middle.

#24 Re: Help Me ! » Two-blocks number » 2016-05-13 05:15:56

Yes, you are right about n.
Why k cannot be odd?

Also, from the properties of perfect squares, the denominator cannot end in 2,3,7 or 8.

But I don't want to mislead you because there might be an easier solution!
My understanding, though, is that the only way to solve it is to somehow limit the boundaries and do some tests.
I know that the number we are looking for is really big...

thickhead wrote:

Hi, chen.aavaz,
n should be the the number of digits of 'b" ,not "a".
I can only say that 'k" can not be an odd number.
So computational work is reduced by 50%

#25 Re: Help Me ! » Two-blocks number » 2016-05-13 05:07:27

It means that we have a natural number "a" and a second one, "b", which is a multiple of a (b=k*a) and we "stick" them together to form a third number "c", of which the right part is b and the left part is a. For example, 21 and 1638 (multiple of 21) and the new number is 211638. We are looking for a number with the property c = (a+b)^2. I know there exists.

bobbym wrote:

if appended to the leftmost of another natural number, multiple of the first one

Can you clear up what that means?

Board footer

Powered by FluxBB