[seqfan] Re: Factorials (A000142) "compressed" through the int data type

Hugo Pfoertner yae9911 at gmail.com
Fri Jun 30 06:35:21 CEST 2017


So, should we have new sequences for "overflown" versions of the
factorials, one for signed 4 byte integers
with the usual implementation using 2's complement as shown in Alonso's
post (which I confirm)

1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
479001600, 1932053504, 1278945280, 2004310016, 2004189184, -288522240,
-898433024, 109641728, -2102132736, -1195114496, -522715136, 862453760,
-775946240, 2076180480, -1853882368, 1484783616, -1375731712, -1241513984,
1409286144, 738197504, -2147483648, -2147483648, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0,

and another one for 8 byte signed integers?

1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800,
39916800, 479001600, 6227020800, 87178291200, 1307674368000,
20922789888000, 355687428096000, 6402373705728000,
121645100408832000, 2432902008176640000, -4249290049419214848,
-1250660718674968576, 8128291617894825984, -7835185981329244160,
7034535277573963776, -1569523520172457984, -5483646897237262336,
-5968160532966932480, -7055958792655077376, -8764578968847253504,
4999213071378415616, -6045878379276664832, 3400198294675128320,
4926277576697053184, 6399018521010896896, 9003737871877668864,
1096907932701818880, 4789013295250014208, 2304077777655037952,
-70609262346240000, -2894979756195840000, 7538058755741581312,
-7904866829883932672, 2673996885588443136, -8797348664486920192,
1150331055211806720, -1274672626173739008, -5844053835210817536,
8789267254022766592, -3258495067890909184, -162551799050403840,
-8452693550620999680, -5270900413883744256, -7927461244078915584,
6711489344688881664, 6908521828386340864, 6404118670120845312,
2504001392817995776, 162129586585337856, -8718968878589280256,
3098476543630901248, 7638104968020361216, 1585267068834414592,
-9223372036854775808, -9223372036854775808, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,



More information about the SeqFan mailing list