OFFSET
1,3
COMMENTS
Length of the n-th row (n != 5) is the order of 11 modulo the n-th prime.
Except for the fifth row, the first term of each row is 1.
LINKS
Alois P. Heinz, Rows n = 1..120, flattened
EXAMPLE
The first 9 rows are:
1;
1, 2;
1;
1, 4, 2;
0;
1, 11, 4, 5, 3, 7, 12, 2, 9, 8, 10, 6;
1, 11, 2, 5, 4, 10, 8, 3, 16, 6, 15, 12, 13, 7, 9, 14;
1, 11, 7;
1, 11, 6, 20, 13, 5, 9, 7, 8, 19, 2, 22, 12, 17, 3, 10, 18, 14, 16, 15, 4, 21;
...
MAPLE
T:= n-> (p-> `if`(p=11, 0, seq(11&^k mod p,
k=0..numtheory[order](11, p)-1)))(ithprime(n)):
seq(T(n), n=1..15); # Alois P. Heinz, Feb 06 2019
MATHEMATICA
Table[If[p == 11, {0}, Array[PowerMod[11, #, p] &, MultiplicativeOrder[11, p], 0]], {p, Prime@ Range@ 10}] (* Michael De Vlieger, Feb 25 2019 *)
PROG
(GAP) A000040:=Filtered([1..350], IsPrime);; p:=5;;
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Muniru A Asiru, Feb 04 2019
STATUS
approved