Juggling Pi as a siteswap.—strach
Re: Pi as a siteswap.
13 Apr 2005 11:07:01 GMT
peterb...@hotmail.com.nospam (Peter Bone)

f(18) = 1928549 This is a 5 ball siteswap 538936820638552953.

I don’t know why I’m waisting my time on this really. I’ve updated my program to search a range of periods and it’s now much faster. <atlas.walagata.com>

I still can’t find more than 4 million digits though. I found the site with 4.2 billion but I think my firewall doesn’t like the ftp or something. It’s also stored as 2 digits per byte, which means I’d have to write another program to convert it to 1 digit per byte.—Peter

I’m sure you do really, you just don’t want to admit that you’re interested in the challenge ;-)—Little

Yes, haha. —Peter

Assuming you mean ftp://pi.super-computing.org/pub/pi I’ve managed to log into the server and transfer a few of the readme files about so I should be able to grab it for you if you like.—Little

Yes please. —Peter

They include a C prog for unpacking it, I guess I might be able to do that too. Thing is though, there’s rather a lot of it - if I unpack it I’m probably going to have to gzip it back up again. But if you’ve got winzip you should be able to unpack that.

It’ll still be fecking huge though.

I’ll see what I can do, (I’ll need to batch up the downloads and do them overnight when no one is using the server I’ll be using to do the download)—Little

Thanks —Peter

Although it’s stored as 2 digits per byte, there’s a program there which converts it for you. It compiled straight away for me, but it reads from stdin and writes to stdout, and I’ve no idea how you’d run it in windows. For anyone that wants to try it in Linux, the command is something like this:

    gcc unpack_pi.c    cat pi100m.hexbin.000 | ./a.out 1 100000000 > pi100m.txt

Oh, and then you need to remove the spaces and newlines (possibly), but some basic perl code will do that for you[1]:

    #!/usr/bin/perl    open(IN,"pi100m.txt");    open(OUT,">pi100mformat.txt");    print OUT "3";    while(<IN>){         s/\s//g;         s/\n//g;         print OUT $_;    }

The program I wrote searches for a range of periods, but it’s very slow. I’m going to have lunch now, so I’ll download your new program and run it on 100 million digits and see how it goes.

Guy

[1] Little Paul, if you’re reading this, I don’t give a toss if it’s a waste of characters.—Guy

 
 
 
 
 
 
 
 
 
 

Right, in the first 100,000,000 digits of pi, we also have:    f(19) = 7072328. It’s a 5 ball ss 7942073892337571639    f(20) = 8629931. It’s a 4 ball ss 88131248833097026205    f(22) = 47994050. It’s a 5 ball ss 8006095353763383933888    f(24) = 8629931. It’s a 4 ball ss 881312488330970262053463

You’ll notice there are none for 21 or 23, and f(20)=f(24). I’ve checked up to period 60 and there are none higher than 24 (and only one of both 22 and 24). Guy—Guy