--- id: 5900f38b1000cf542c50fe9e challengeType: 5 title: 'Problem 31: Coin sums' videoUrl: '' localeTitle: 'Problema 31: somas de moeda' --- ## Description
Na Inglaterra, a moeda é composta de libras, libras e moedas, e há oito moedas em circulação: 1p, 2p, 5p, 10p, 20p, 50p, £ 1 (100p) e £ 2 (200p). É possível fazer £ 2 da seguinte maneira: 1 × 1 + 1 × 50p + 2 × 20p + 1 × 5p + 1 × 2p + 3 × 1p De quantas maneiras diferentes podem ser feitas (£) usando qualquer número de moedas?
## Instructions
## Tests
```yml tests: - text: coinSums(50) deve retornar 451. testString: 'assert(coinSums(50) == 451, "coinSums(50) should return 451.");' - text: coinSums(100) deve retornar 4563. testString: 'assert(coinSums(100) == 4563, "coinSums(100) should return 4563.");' - text: coinSums(150) deve retornar 21873. testString: 'assert(coinSums(150) == 21873, "coinSums(150) should return 21873.");' - text: coinSums(200) deve retornar 73682. testString: 'assert(coinSums(200) == 73682, "coinSums(200) should return 73682.");' ```
## Challenge Seed
```js function coinSums(n) { // Good luck! return n; } coinSums(200); ```
## Solution
```js // solution required ```