HELP! Python!!

Define a function named dice_odds that returns a dictionary with possible sums between two 6-face dice as
keys and a list of all combinations (tuples) as values.

&

Define a 'recursive' function named 'geometric_sequence' that takes three integers as follows
i - first element
r - ratio
n - an integer for target position
and returns the nth element in this sequence. You are required to use memoization to speed up
the computation. Your code should not be limited to the following parameters

>>>> geometric_sequence(3, 2, 5)
48