{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Euler Problem 31\n", "\n", "In England the currency is made up of pound, £, and pence, p, and there are eight coins in general circulation:\n", "\n", "1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).\n", "\n", "It is possible to make £2 in the following way:\n", "\n", "1×£1 + 1×50p + 2×20p + 1×5p + 1×2p + 3×1p\n", "\n", "How many different ways can £2 be made using any number of coins?" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "I really have mental issues to this in a non recursive way." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "\n", " " ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.3" } }, "nbformat": 4, "nbformat_minor": 2 }