anjalika9923
New Member
- Joined
- Jun 30, 2019
- Messages
- 14
- Gender
- Female
- HSC
- 2021
It's part of an induction question. I introduced p and q and specifically said "let p, q=the variable number of coins needed" and p, q are positive integers. I think I will just change the way I've set it out so it's similar to how you do divisibility induction questions eg. x=5A+5B, and at the end you get x=5C where C=A+B (something like that). ThanksYou cannot, did you or the question itself defined the variable p before? like p is an integer or something? If you didn't then define it, if you did, you can either define p+1 as P, where P is also an integer (or whatever you defined it as), you can also use := sign, which means something is defined to be equal to something, where you can do let p := p + 1, which translated as let p defined to be equal to p + 1. To clarify things, you can write next to it (since integer is closed under +, -, x, ÷) this part is not necessary for the actual exam.
I would like to see the full question and the solution to it, because it may not make sense to chuck this in the middle.
In that case, I agree with @Everwinter and suggest that this should be something likeIt's part of an induction question. I introduced p and q and specifically said "let p, q=the variable number of coins needed" and p, q are positive integers. I think I will just change the way I've set it out so it's similar to how you do divisibility induction questions eg. x=5A+5B, and at the end you get x=5C where C=A+B (something like that). Thanks