[Chicago] A list comprehension???
kirby urner
kirby.urner at gmail.com
Tue May 5 02:05:39 CEST 2015
On Mon, May 4, 2015 at 4:59 PM, kirby urner <kirby.urner at gmail.com> wrote:
> Sorry:
>
> [(4*n**2 + 4*n)//4 for n in range(10)]
>
>
> Source:
>
>
>
https://oeis.org/A002378
4*a(n)+1 are the odd squares A016754 <https://oeis.org/A016754>(n).
https://oeis.org/A016754
a(n) = 4*n*(n + 1) + 1 = 4*n^2 + 4*n + 1. - Artur Jasinski
<https://oeis.org/wiki/User:Artur_Jasinski>, Mar 27 2008
So I took:
a(n) = 4*n*(n + 1) + 1
and went
(a(n) -1 )// 4 PER A002378.
Kirby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20150504/694e7560/attachment.html>
More information about the Chicago
mailing list