Here are two math puzzles, solve, comment and enjoy the discussion!
Prove that p2−1 is divisible by 24, where p is a prime number with p>3.
This is a simple one - do not go by the technicality of the problem statement.
p2−1=(p−1)×(p+1) Given, p is a prime number >3, p−1 and p+1 are even. We can also write,p−1=2K,and p+1=2K+2=2(K+1)
Given, K∈N, either K or K+1 are also even. Hence, (p−1)×(p+1) is divisible by 2×4=8.
Furthermore, as p is prime, we can write it as either p=3s+1 or p=3s−1, where s∈N. In either case, one of p−1 or p+1 are divisible by 3 as well.
Hence, p2−1 is divisible by 8×3=24.
On a chess board, basically a 8×8 grid, how many ways one can go from the left most bottom corner to the right most upper corner? In chess naming conventions, from a1 to h8.
In the original post this problem was ill defined.
Please solve this problem with the constraints that only up and right moves are allowed.
Can you find the generic answer for the case of N×M grid?
For an N×M grid, we need only N−1 right and M−1 up moves.
Thank you Devin for pointing this out.
Given only forward moves are allowed, for any arbitrary grid of N×M, a total of (N−1)+(M−1) moves are needed.
Any N−1 of these moves can be of type right and M−1 of type up. In short, this is a combinatorial problem of distributing N+M−2 objects into groups of N−1 and M−1. This is simply,(N−1N+M−2)=(N−1)!(M−1)!(N+M−2)!
In the particular case of the chess board, N=M=8. Hence, total number of possible paths are:No. of Paths=7!7!14!=3432
Thank you Rohit and Amber for posting quick solutions!
Let me know if you have any other interesting alternative solutions to these problems.