mersenneforum.org  

Go Back   mersenneforum.org > Search Forums

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: paulunderwood
Forum: Abstract Algebra & Algebraic Number Theory 2017-06-28, 23:55
Replies: 27
Views: 11,797
Posted By paulunderwood
If you have linux you could use the bc language...

If you have linux you could use the bc language (https://en.wikipedia.org/wiki/Bc_%28programming_language%29):

bc 1.06.95
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software...
Forum: Abstract Algebra & Algebraic Number Theory 2017-06-28, 23:04
Replies: 27
Views: 11,797
Posted By paulunderwood
Pari/GP (http://pari.math.u-bordeaux.fr/) has a...

Pari/GP (http://pari.math.u-bordeaux.fr/) has a function called binary(). For example:

? n=2^17-1;
? binary(n)
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
Showing results 1 to 2 of 2

 
All times are UTC. The time now is 20:56.


Sun Dec 5 20:56:03 UTC 2021 up 135 days, 15:25, 0 users, load averages: 1.33, 1.51, 1.49

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.