Create a file solution.py with the described functions and a file test.py that will evaluate them for a selected set of inputs (your choice).
Create a function Newton(n,m) which for integers n and m will return an integer equal to the the binomial coefficient n over m. Which is equal to:
Do it so that the result will be still good for high values of n
Create a function Pascal(n) which will return a list of n rows of elements of the Pascal triangle. The result should be a list of length n. The elements of this list should be also lists, of increasing length (from 1 to n). For example:
> Pascal(4)
[ [1], [1,1], [1,2,1], [1,3,3,1] ]Create a function LotOfHash(n) which will print one line for each row of the Pascal Triangle, in which all the odd numbers will be printed as #. For example:
> LotOfHash(6)
#
##
# #
####
# #
## ##Consider how to do it for high values of n
Write a function PowerModulo(a,b,n) which will calculate the reminder of a^b with respect to division by n:

For example:
> PowerModulo(2,1,10)
2
> PowerModulo(2,2,10)
4
> PowerModulo(2,3,10)
8
> PowerModulo(2,4,10)
6
> PowerModulo(2,5,10)
2
> PowerModulo(2,6,10)
4
Implement is so that the value can be calculated for very high numbers (including b).
Clue: To calculate a^(2^k)~ you need only k` multiplications
Write a function Intersect(a,b) that for two tuples a=[x1,y1,r1] and b=[x2,y2,r1] will return a list of points of intersection of two circles, one with center at (x1,y1) and radious r1 and the other at (x2,y2) and radious r2. For example:
> Intersect( (0,0,5), (6,0,5) )
[ (3, 4), (3,-4) ]
> Intersect( (0,0,5), (10,0,5) )
[ (5, 0) ]
> Intersect( (0,0,5), (15,0,5) )
[ ]