Jump to content

I have one very serious problem

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
12 replies to this topic

#1
Guest_Jaan_*

Guest_Jaan_*
  • Guests
Howdy guys.. I have one problem for you to solve. I need to know how to strange thing works.. It goes like this:

1. Choose one number how many times you would like to eat chocolate per week. It has to be more than 1 and less than 10.
2. Multiple it with 2
3. Add 5
4. Multiple it with 50
5. If your birthday has passed this year already then add 1760, if not then 1759
6. Now take off your birth year from it. (Like.. 1991 for me)

If it's done you will see a number that contains 3 numbers. First number is your chocolate number and another one is your age?!

I have done it multiple times and I just don't understand how the hell it works.

Wingeeeeeeeed.. here's a challenge for you :D If you solve it I will send you a jar of pickles.. I love pickels :)

#2
Roman Y

Roman Y

    Programmer

  • Members
  • PipPipPipPip
  • 189 posts
well you have 5 * 50 + 1760 = 2010 this year. And the number of chocolate is for every time you want it adds a hundred... e.g 5*50 = 250 (2*2 + 5)*50 = 450 (3*2 + 5)*50 = 550.
you see the pattern? it just adds up 100 for every number. 0 -> 250, 1 - > 350 and so on...
so as long as you enter right birth year it will always write your age write kind of tell me your birth year and I can tell you how old you are/going to be this year (since I know that it's 2010) and numbers before will always be the number you've entered before.

#3
Roman Y

Roman Y

    Programmer

  • Members
  • PipPipPipPip
  • 189 posts
P.S love pickels too, so where is my jar?:w00t: )))

#4
DarkLordofthePenguins

DarkLordofthePenguins

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 409 posts
Write it as an algebraic equation and the solution will become obvious.

#5
Guest_Jaan_*

Guest_Jaan_*
  • Guests
Dam.. :D it wasn't that hard :D but it's still amazing :D

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts

Jaan said:

Howdy guys.. I have one problem for you to solve. I need to know how to strange thing works.. It goes like this:

1. Choose one number how many times you would like to eat chocolate per week. It has to be more than 1 and less than 10.
c in {1,2,3,4,5,6,7,8,9}

Jaan said:

2. Multiple it with 2
2*c in {2,4,6,8,10,12,14,16,18}

Jaan said:


3. Add 5
2*c+5

Jaan said:


4. Multiple it with 50
100*c+250

Jaan said:


5. If your birthday has passed this year already then add 1760, if not then 1759
100*c + 250 + {1760,1759} = 100*c + {2010, 2009}

Jaan said:


6. Now take off your birth year from it. (Like.. 1991 for me)

100*c + age

Jaan said:


If it's done you will see a number that contains 3 numbers. First number is your chocolate number and another one is your age?!

I have done it multiple times and I just don't understand how the hell it works.

Wingeeeeeeeed.. here's a challenge for you :D If you solve it I will send you a jar of pickles.. I love pickels :)
Unfortunately, I'm an old geezer at 103, which screwed everything up :)
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#7
Roman Y

Roman Y

    Programmer

  • Members
  • PipPipPipPip
  • 189 posts

Jaan said:

Dam.. :D it wasn't that hard :D but it's still amazing :D

So where are my pickels??:D

#8
Guest_Jaan_*

Guest_Jaan_*
  • Guests
Nono, Winged will get pickles.. for you.. mm I will give you a smiley ":amr:". :)
Thanks winged.. send me your address :d I'll send you those pickles :)

Thanks for everybody

#9
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I shop at Sam's Club: I can get all the pickles I want :)
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#10
Guest_Jaan_*

Guest_Jaan_*
  • Guests
You don't want my pickles :(

#11
James.H

James.H

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 866 posts
wow it actually works :)

#12
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts

Jaan said:

You don't want my pickles :(
I knew you were going to give me butter pickles, not the kosher dills I crave :)
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog