title: Help me write a function
body: <p>Hello can anyone help me write a function that calculates 1+x+x^2+...+x^n for a given x and a positive integer n and use it to calculate (1+x+x^2+...+x^10)(1+x^2+x^4+...+x^10) for x=100?</p>