- #1

jackmell

- 1,807

- 54

I'd like to save a Mathematica array as a "b-file" so that I can upload it to the on-line encyclopedia of integer sequences. Here's a short version of my array:

bData={{2,1},{3,1},{4,1},{5,2},{6,1},{7,2},{8,6},{9,2},{10,2},{11,4}}

and the b-file format would be:

2,1

3,1

4,1

5,2

6,1

7,2

8,6

9,2

10,2

11,4

However if I just put it to disk via:

bData>>"C://Abstract Algebra//b12345.txt"

Mathematica will just put it in array form with the brackets. Could someone help me put this data in the correct format for OEIS?

Ok thanks,

Jack

Edit:

This is close:

Export["C://Abstract Algebra//b23333.txt",myData,"List"]

that's all in a column but still has brackets around each row of data.

This is it guys:

Export["C://Abstract Algebra//b23333.txt",myData,"Table"]

(sorry I can't delete the thread)

bData={{2,1},{3,1},{4,1},{5,2},{6,1},{7,2},{8,6},{9,2},{10,2},{11,4}}

and the b-file format would be:

2,1

3,1

4,1

5,2

6,1

7,2

8,6

9,2

10,2

11,4

However if I just put it to disk via:

bData>>"C://Abstract Algebra//b12345.txt"

Mathematica will just put it in array form with the brackets. Could someone help me put this data in the correct format for OEIS?

Ok thanks,

Jack

Edit:

This is close:

Export["C://Abstract Algebra//b23333.txt",myData,"List"]

that's all in a column but still has brackets around each row of data.

This is it guys:

Export["C://Abstract Algebra//b23333.txt",myData,"Table"]

(sorry I can't delete the thread)

Last edited: