login
A168455
3^n+n mod 7.
0
1, 4, 4, 2, 1, 3, 0, 3, 3, 1, 0, 2, 6, 2, 2, 0, 6, 1, 5, 1, 1, 6, 5, 0, 4, 0, 0, 5, 4, 6, 3, 6, 6, 4, 3, 5, 2, 5, 5, 3, 2, 4, 1, 4, 4, 2, 1, 3, 0, 3, 3, 1, 0, 2, 6, 2, 2, 0, 6, 1, 5, 1, 1, 6, 5, 0, 4, 0, 0, 5, 4, 6, 3, 6, 6, 4, 3, 5, 2, 5, 5, 3, 2, 4, 1, 4, 4, 2, 1, 3, 0, 3, 3, 1, 0, 2, 6, 2, 2, 0, 6, 1, 5, 1, 1
OFFSET
0,2
COMMENTS
Period 42: 1,4,4,2,1,3,0,3,3,1,0,2,6,2,2,0,6,1,5,1,1,6,5,0,4,0,0,5,4,6,3,6,6,4,3,5,2,5,5,3,2,4.
MATHEMATICA
Mod[3^# + #, 7] & /@ Range[0, 168]
CROSSREFS
Sequence in context: A173635 A196766 A153163 * A300153 A182781 A291085
KEYWORD
nonn
AUTHOR
Zak Seidov, Nov 26 2009
STATUS
approved