[seqfan] Haskell program for A000079

Allan Wechsler acwacw at gmail.com
Wed Jan 22 21:57:28 CET 2014


The first Haskell program for A000079 (powers of 2) looks wrong to me. But
I am only just starting to "learn me a Haskell", so rather than edit I
thought I'd ask here first.

The program says:

a000079 n = (2 ^)

I think that "n" is wrong and it should just say

a000079 = (2 ^)

or, if we don't want to use a section,

a000079 n = (2 ^ n)

Can anybody confirm this? Thanks for your help.



More information about the SeqFan mailing list