Error in A080764

Joerg Arndt arndt at jjj.de
Tue Apr 19 13:41:36 CEST 2005


* Ralf Stephan <ralf at ark.in-berlin.de> [Apr 16. 2005 13:09]:
> > 11011011101101110110110111011011101101101
> >[...] 
> > Here is the command line (zsh) hack to generate the patterns:
> 
> 
> Wow. That should be the first shell script in the OEIS to
> generate a sequence.
> 
> 
> ralf

A general and flexible stringsubst engine is demo'd at
http://www.jjj.de/fxt/demo/ds/#stringsubst

To use it,
- download fxt at http://www.jjj.de/fxt/
- make
- make 1demo DSRC=demo/ds/stringsubst-demo.cc
- mv bin stringsubst

Usage:
  ./stringsubst maxdepth starts symbol0 rule0 symbol1 rule1 ... 
e.g.
  ./stringsubst 5 0 0 1 1 101
Number of symbols = 2
Start: 0
Rules:
  0 --> 1
  1 --> 101
-------------
0:   (#=1)
  0
1:   (#=1)
  1
2:   (#=3)
  101
3:   (#=7)
  1011101
4:   (#=17)
  10111011011011101
5:   (#=41)
  10111011011011101101110110111011011011101


Btw. you gotta love zsh:
13:32:29 jj at L58:~/ [1] % echo $(( [#2] 10#2**61-1 ))
2#1111111111111111111111111111111111111111111111111111111111111


-- 
p=2^q-1 prime <== q>2, cosh(2^(q-2)*log(2+sqrt(3)))%p=0
Life is hard and then you die.






More information about the SeqFan mailing list