View Single Post
  #27   Spotlight this post!  
Unread 09-07-2004, 07:40
FizMan's Avatar
Happy Birthday! FizMan FizMan is offline
aboot, eh?
AKA: Chris Sinclair
#0783 (Mobotics)
Team Role: Alumni
 
Join Date: Feb 2004
Location: Toronto, Canada
Posts: 102
FizMan will become famous soon enough
Send a message via AIM to FizMan Send a message via MSN to FizMan
Re: Maths problems (interesting ones)

Quote:
Originally Posted by Denman
There is a five-digit number having digits 1-9, no two digits being identical. Two are prime numbers, two are square numbers, and one is neither. The third digit is twice the fifth, the fourth is six greater than the second and the last is three less than the first.
This is really hard actually, i havn't worked it out yet lol

73894

Here's my notepad logic. Then I just fiddled around with numbers for five minutes at the end until I got something that worked.

Code:
abcde
c = 2e
d = b + 6
e = a - 3
c = 2a - 6
c == even
c < 10
2a - 6 < 10
2a < 16
a < 8

c < 10
2e < 10
e < 5

d < 10
b + 6 < 10
b < 4

e < 10
a - 3 < 10
a < 13

a is less than 8
e = (<8) - 3
e < 5

abcde
73894
__________________
Joules per second! Watt? Joules per second! Watt? Jouls per second! Watt?
Reply With Quote