Monday, March 12, 2012

Piss with Math

This is not really my blog. But I have write access. So here's something new. Re-post from google-plus

new math magic script. below

http://ansistego.sf.net/series.py << new math magic script. I was inspired to look at sums of digits in powers of 2 by a shroom trip and I found it spelling 512's, not adding up to them, printing them, and got intrigued enough to investigate it in other bases, which had some wild results, so I made this script to do this on series automagically. There is probably a faster way than how I do it; if you do a number longer than ten or twenty digits, uh, it will probably get stuck. Read on

-----

OK here it is again. There were some bugs in http://ansistego.sf.net/series.py that mangled the output if there were too many spaces in the input so here is a better one using more powers of 2 as a seed. Wow is this amazing stuff

> 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 16777216 33554432 67108864 134217728 268435456 536870912 1073741824 2147483648 4294967296 8589934592 17179869184 34359738368 68719476736 137438953472 274877906944 549755813888 1099511627776 2199023255552 4398046511104 8796093022208 17592186044416 35184372088832 70368744177664 140737488355328 281474976710656

> highest
> run
> 1 2 4 8 7 5 10 11 13 8 7 14 19 20 22 26 25 14 19 29 31 26 25 41 37 29 40 35 43 41 37 47 58 62 61 59 64 56 67 71 61 50 46 56 58 62 70 68 73
> highest
> run
> 1 2 4 8 7 5 1 2 4 8 7 5 10 2 4 8 7 5 10 11 4 8 7 5 10 11 4 8 7 5 10 11 13 8 7 14 10 11 13 8 7 5 10 11 13 8 7 14 10 11 4 8 7 5 10 11 13 8 7 14 10 11 13 8 7 5 10 11 13 8 7 14 10
> highest
> run

1 2 4 8 7 5 1 2 4 8 7 5 1 2 4 8 7 5 1 2 4 8 7
5 1 2 4 8 7 5 1 2 4 8 7 5 1 2 4 8 7 5 1 2 4 8 7
5 1 2 4 8 7 5 1 2 4 8 7 5 1 2 4 8 7 5 1 2 4 8
7 5 1 2 4 8 7 5 1 2 4 8 7 5 1 2 4 8 7 5 1 2 4 8
7 5 1 2 4 8 7 5 1 2 4 8 7 5 1

512 is one of the first powers of two you can't uniquely represent by
adding up their digits this way. 487 is a microprocessor we use on
Earth. So it's just for your approval

------

Just tried powers of 3. Heck try it yourself OK. With some other
number series. But it's working amazing with powers. Look at this.

High:

1 3 9 9 9 9 18 18 18 27 27 27 18 27 45 36 27 27 45
36 45 27 45 54 54 63 63

That's just the sums of the digits in powers of 3. Even wacky ones
like 847288609443. Which apparently adds up to 63 same as
2541865828329. And of course the sums of the digits of each of those
are 9. Look at the low set:

1 3 9 5 7 1 4 2 4 1 1 1 2 1 1 2 1 1 1 2 1 1 1 2 2 1 1

All those huge powers of 3 can have their digits added/subtracted in
various combinations to reach either 1 or 2, no lower no higher.
Fascinating

So let's process the high set. It will be all nines

> highest
> run
1 3 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9

Guess we're done here

o_o

No comments:

Post a Comment