login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Apply the transformation 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 0 to the digits of n written in base 6, then convert back to base 10.
2

%I #3 Mar 23 2015 07:15:08

%S 1,2,3,4,5,0,13,14,15,16,17,12,19,20,21,22,23,18,25,26,27,28,29,24,31,

%T 32,33,34,35,30,1,2,3,4,5,0,79,80,81,82,83,78,85,86,87,88,89,84,91,92,

%U 93,94,95,90,97,98,99,100,101,96

%N Apply the transformation 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 0 to the digits of n written in base 6, then convert back to base 10.

%C Base 6 variant of A035327 (base 2) and A048379 (base 10). See A256293 - A256299 for bases 3 through 9, and A256306 for the variant where the result is not converted back to base 10.

%e a(6) = 13 because 6 = 10[6] becomes 21[6] = 13.

%e a(35) = 0 because 35 = 55[6] becomes 00[6] = 0.

%o (PARI) A256296(n,b=6)=!n+apply(t->(t+1)%b,n=digits(n,b))*vector(#n,i,b^(#n-i))~

%K nonn,base,easy

%O 0,2

%A _M. F. Hasler_, Mar 22 2015