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 A373832 #14 Jun 21 2024 07:47:47 %S A373832 0,0,1,0,2,0,1,0,0,1,3,0,1,2,3,0,2,0,3,0,1,2,5,0,0,1,3,4,1,0,1,0,0,1, %T A373832 3,0,1,2,3,0,1,0,3,0,0,1,5,0,4,0,3,4,4,4,1,2,1,2,3,0,1,2,3,0,0,0,3,0, %U A373832 4,0,5,0,3,4,3,4,0,3,1,2,4,5,3,0,1,2,7,0,8,0,3,0,3,4,5,0,2,3,3,4,3,2,1,2,0 %N A373832 a(n) = n mod A276150(n), where A276150 is the digit sum in the primorial base. %H A373832 Antti Karttunen, <a href="/A373832/b373832.txt">Table of n, a(n) for n = 1..100000</a> %H A373832 <a href="/index/Pri#primorialbase">Index entries for sequences related to primorial base</a> %F A373832 a(n) = A373850(A276086(n)). %o A373832 (PARI) %o A373832 A276150(n) = { my(s=0, p=2, d); while(n, d = (n%p); s += d; n = (n-d)/p; p = nextprime(1+p)); (s); }; %o A373832 A373832(n) = (n % A276150(n)); %Y A373832 Cf. A276086, A276150, A333426 (positions of 0's), A373833, A373834, A373850. %K A373832 nonn,base %O A373832 1,5 %A A373832 _Antti Karttunen_, Jun 19 2024