Shortest expression for {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4} Given list of integers {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4}.
For those who interested these numbers are used in weekday calculation.

Weekday = (m[n] + d + y + y&gt;&gt;2 + y/400 - y/100) % 7;, where m[n] - expression I'm searching, d - day of month, y - year - (month &lt;= 2).

Construct expression consisting of arithmetic, logic and bitwise operators, which will output for positive integer n integer m so that m % 7 equals n-th number in the list.

Branches, ternary operators, table lookups and pointers are not allowed.

Score:
1 - for | &amp; ^ ~ &gt;&gt; &lt;&lt; operators
1.1 - for + - &lt; &gt; &lt;= &gt;= == != ! &amp;&amp; || operators
1.2 - for * operator
1.4 - for / % operators  

Answer with lowest score wins.

Personally I have found:


   (41*n)&gt;&gt;4+((n+61)&gt;&gt;4)&lt;&lt;2 with score 6.4.
 I thought this will be hard to find so provided own expression to start with.
2 2.2
I love arbitrary precision arithmetic.
0x4126030156610&gt;&gt;(n&lt;&lt;2)

Or, if you don't like hex,
1146104239711760&gt;&gt;(n&lt;&lt;2)

Test:
print([(0x4126030156610&gt;&gt;(n&lt;&lt;2))%7 for n in range(1,13)])
[0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4]