UVa 10014

From Algorithmist
Jump to navigation Jump to search

10014 - Simple Calculations[edit]

Summary[edit]

This problem can be solved by repeated substitution.

Explanation[edit]

We are given:

Or rearranging:

We can use this to solve for An-1:

And so on:

So at the end we get: