Started on puzzle 44
authorNeil Smith <neil.git@njae.me.uk>
Sat, 4 Mar 2017 22:05:01 +0000 (22:05 +0000)
committerNeil Smith <neil.git@njae.me.uk>
Sat, 4 Mar 2017 22:05:01 +0000 (22:05 +0000)
euler44.ipynb [new file with mode: 0644]

diff --git a/euler44.ipynb b/euler44.ipynb
new file mode 100644 (file)
index 0000000..df13e12
--- /dev/null
@@ -0,0 +1,52 @@
+{
+ "cells": [
+  {
+   "cell_type": "code",
+   "execution_count": 1,
+   "metadata": {
+    "collapsed": false
+   },
+   "outputs": [
+    {
+     "data": {
+      "text/plain": [
+       ":pentagonal"
+      ]
+     },
+     "execution_count": 1,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
+   "source": [
+    "def pentagonal(n)\n",
+    "  n * (3 * n - 1) / 2\n",
+    "end"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {
+    "collapsed": true
+   },
+   "outputs": [],
+   "source": []
+  }
+ ],
+ "metadata": {
+  "kernelspec": {
+   "display_name": "Ruby 2.4.0",
+   "language": "ruby",
+   "name": "ruby"
+  },
+  "language_info": {
+   "file_extension": ".rb",
+   "mimetype": "application/x-ruby",
+   "name": "ruby",
+   "version": "2.4.0"
+  }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}