ajs / perl6-Math-Sequences

Useful mathematical sequences
Artistic License 2.0
3 stars 9 forks source link

Add code for A000688 / abelian groups #134

Closed thundergnat closed 5 years ago

thundergnat commented 5 years ago

I'm of two minds about this. It nominally relies on A000041 which is not yet implemented. However I've put in a hard coded list which will allow up to 2**173526 terms before it fails. Yeah, it's not infinite, but it's probably good enough for all but the most extreme use.

Resolves #94

AlexDaniel commented 5 years ago

However I've put in a hard coded list which will allow up to 2**173526 terms before it fails. Yeah, it's not infinite

That's long enough. It's totally fine.

thundergnat commented 5 years ago

Sigh. I think I may need to stop for a while, I'm starting to make (even more) stupid errors.

AlexDaniel commented 5 years ago

Thanks!

AlexDaniel commented 5 years ago

Actually, A000688 is wrong.

expected: '1 1 1 2 1 1 1 3 2 1 1 2 1 1 1 5 1 2 1 2 1 1 1 3 2 1 3 2 1 1 1 7 1 1 1 4 1 1 1 3 1 1 1 2 2 1 1 5 2 2 1 2 1 3 1 3 1 1 1 2 1 1 2 11 1 1 1 2 1 1 1 6 1 1 2 2 1 1 1 5 5 1 1 2 1 1 1 3 1 2 1 2 1 1 1 7 1 2 2 4 1 1 1 3 1 1 1'
     got: '1 1 1 2 1 1 1 3 2 1 1 2 1 1 1 5 1 2 1 2 1 1 1 3 2 1 3 2 1 1 1 7 1 1 1 2 1 1 1 3 1 1 1 2 2 1 1 5 2 2 1 2 1 3 1 3 1 1 1 2 1 1 2 11 1 1 1 2 1 1 1 3 1 1 2 2 1 1 1 5 5 1 1 2 1 1 1 3 1 2 1 2 1 1 1 7 1 2 2 2 1 1 1 3 1 1 1'