Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A131624
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A131624 Triangular array read by rows: a(1, n) = Mod[n, 10]; a(m, 1) = a(m - 1, 2); a(m, n) = Mod[a(m - 1, a(m, n - 1) + 1), 9]. +0
1
1, 2, 2, 3, 3, 3, 5, 5, 4, 4, 4, 4, 7, 5, 5, 8, 8, 2, 0, 6, 6, 2, 2, 2, 7, 2, 7, 7, 2, 2, 2, 2, 8, 4, 8, 8, 2, 2, 2, 2, 2, 1, 6, 0, 9, 2, 2, 2, 2, 2, 2, 5, 8, 1, 0 (list; table; graph; listen)
OFFSET

1,2

COMMENT

A double-modulus Ackermann recursion.

REFERENCES

Harry R. Lewis and Christos H. Papadimitriou, Elements of the Theory of Computation, Prentice-Hall, 1981, pages 296 and 345

Wolfram, S., A New Kind of Science. Champaign, IL: Wolfram Media, p. 906, 2002.

LINKS

Erc Weisstein, Ackermann Function

FORMULA

a(1, n) = Mod[n, 10]; a(m, 1) = a(m - 1, 2); a(m, n) = Mod[a(m - 1, a(m, n - 1) + 1), 9]; aout(n,m)=AntidiagonalTransform(a(n,m))

EXAMPLE

{1},

{2, 2},

{3, 3, 3},

{5, 5, 4, 4},

{4, 4, 7, 5, 5},

{8, 8, 2, 0, 6, 6},

{2, 2, 2, 7, 2, 7, 7},

{2, 2, 2, 2, 8, 4, 8, 8},

{2, 2, 2, 2, 2, 1, 6, 0, 9},

{2, 2, 2, 2, 2, 2, 5, 8, 1, 0}

MATHEMATICA

Clear[f] f[1, n_] := Mod[n, 10]; f[m_, 1] := f[m - 1, 2]; f[m_, n_] := Mod[f[m - 1, f[m, n - 1] + 1], 9]; a0 = Table[f[a, b], {a, 1, 10}, {b, 1, 10}]; ListDensityPlot[%, ColorFunction -> (Hue[2# ] &)]; Dimensions[a0]; (* antidiagonal transform*) c = Delete[Table[Reverse[Table[a0[[n, l - n]], {n, 1, l - 1}]], {l, 1, Dimensions[a0][[1]] + 1}], 1]; Flatten[c]

CROSSREFS

Cf. A001695/M2352 and A014221.

Sequence in context: A125843 A127332 A087826 this_sequence A063905 A130312 A076272

Adjacent sequences: A131621 A131622 A131623 this_sequence A131625 A131626 A131627

KEYWORD

nonn,tabl,easy,more

AUTHOR

Roger L. Bagula (rlbagulatftn(AT)yahoo.com), Oct 02 2007

EXTENSIONS

Edited by njas, Feb 02 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified September 6 00:03 EDT 2008. Contains 143485 sequences.


AT&T Labs Research