• Congratulations to the Class of 2024 on your results!
    Let us know how you went here
    Got a question about your uni preferences? Ask us here

induction (1 Viewer)

...

^___^
Joined
May 21, 2003
Messages
7,723
Location
somewhere inside E6A
Gender
Male
HSC
1998

Prove that, given enough 4cents and 7cents stamps, you can make any amount of postage 18cents or greater


hmm

i took the tradition approach (prove the base case its true, assume n is true and then prove n+1 is true)
but it didn't work out for one of the later cases
 

shafqat

Member
Joined
Aug 20, 2003
Messages
517
Gender
Undisclosed
HSC
N/A
... said:

Prove that, given enough 4cents and 7cents stamps, you can make any amount of postage 18cents or greater


hmm

i took the tradition approach (prove the base case its true, assume n is true and then prove n+1 is true)
but it didn't work out for one of the later cases
Do you mean 18 cents and any multiple of 18 cents?
 

acmilan

I'll stab ya
Joined
May 24, 2004
Messages
3,989
Location
Jumanji
Gender
Male
HSC
N/A
It means any number > 18 can be made solely of a number of 4 and 7 cents stamps. Ie 18, 19, 20, 21 ...
 

withoutaface

Premium Member
Joined
Jul 14, 2004
Messages
15,098
Gender
Male
HSC
2004
We can make 18 = 4+7+7
19 = 4+4+4+7
20 = 4+4+4+4+4
21 = 7+7+7

And for any higher we can just add 4n to any of these base cases, where n is any positive integer.
 

shafqat

Member
Joined
Aug 20, 2003
Messages
517
Gender
Undisclosed
HSC
N/A
Very nice and elegant. Why is it induction? I guess if you really want to prove it that way, write X = 4n + 7m. Then X + 1 = 4n + 7m + 1 and peel off 4s and 7s, eg 4(1 + p) etc. and then factorise.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top