This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A256295 #3 Mar 23 2015 07:15:40 %S A256295 1,2,3,4,0,11,12,13,14,10,16,17,18,19,15,21,22,23,24,20,1,2,3,4,0,56, %T A256295 57,58,59,55,61,62,63,64,60,66,67,68,69,65,71,72,73,74,70,51,52,53,54, %U A256295 50,81,82,83,84,80,86,87,88,89,85 %N A256295 Apply the transformation 0 -> 1 -> 2 -> 3 -> 4 -> 0 to the digits of n written in base 5, then convert back to base 10. %C A256295 Base 5 variant of A035327 (base 2) and A048379 (base 10). See A256293 - A256299 for bases 3 through 9, and A256305 for the variant where the result is not converted back to base 10. %e A256295 a(5) = 11 because 5 = 10[5] becomes 21[5] = 11. %e A256295 a(24) = 0 because 24 = 44[5] becomes 00[5] = 0. %o A256295 (PARI) A256295(n,b=5)=!n+apply(t->(t+1)%b,n=digits(n,b))*vector(#n,i,b^(#n-i))~ %K A256295 nonn,base,easy %O A256295 0,2 %A A256295 _M. F. Hasler_, Mar 22 2015