18 "output_type": "execute_result"
40 "output_type": "execute_result"
45 "(1..((size-1)/2)).map {|i| i}"
63 "output_type": "execute_result"
68 "(1..((size-1)/2)).map {|i| (2*i + 1)**2}"
73 "execution_count": 14,
84 "execution_count": 14,
86 "output_type": "execute_result"
91 "(1..((size-1)/2)).map {|i| (2*i + 1)**2 - 2*i}"
96 "execution_count": 12,
107 "execution_count": 12,
109 "output_type": "execute_result"
114 "(1..((size-1)/2)).map {|i| (2*i + 1)**2 - 4*i}"
119 "execution_count": 13,
130 "execution_count": 13,
132 "output_type": "execute_result"
137 "(1..((size-1)/2)).map {|i| (2*i + 1)**2 - 6*i}"
142 "execution_count": 17,
153 "execution_count": 17,
155 "output_type": "execute_result"
160 "(1..((size-1)/2)).map {|i| 4* (2*i + 1)**2 - 12*i}"
165 "execution_count": 18,
176 "execution_count": 18,
178 "output_type": "execute_result"
183 "(1..((size-1)/2)).sum {|i| 4* (2*i + 1)**2 - 12*i} + 1"
188 "execution_count": 19,
199 "execution_count": 19,
201 "output_type": "execute_result"
206 "(1..((size-1)/2)).sum {|i| 4 * (2*i+1)**2 - 12 * i} + 1"
211 "execution_count": 21,
222 "execution_count": 21,
224 "output_type": "execute_result"
229 "(1..((size-1)/2)).sum {|i| 4 * (2*i+1)**2 - 12 * i} + 1"
234 "execution_count": null,
244 "display_name": "Ruby 2.4.0",
249 "file_extension": ".rb",
250 "mimetype": "application/x-ruby",