cp's OEIS Frontend

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.

A030107 Base 8 reversal of n (written in base 10).

This page as a plain text file.
%I A030107 #27 Jul 10 2021 06:56:56
%S A030107 0,1,2,3,4,5,6,7,1,9,17,25,33,41,49,57,2,10,18,26,34,42,50,58,3,11,19,
%T A030107 27,35,43,51,59,4,12,20,28,36,44,52,60,5,13,21,29,37,45,53,61,6,14,22,
%U A030107 30,38,46,54,62,7,15,23,31,39,47,55,63,1,65,129,193,257,321,385,449,9,73,137
%N A030107 Base 8 reversal of n (written in base 10).
%H A030107 Seiichi Manyama, <a href="/A030107/b030107.txt">Table of n, a(n) for n = 0..4095</a>
%t A030107 Table[FromDigits[Reverse[IntegerDigits[n,8]],8],{n,0,80}] (* _Harvey P. Dale_, Jun 04 2021 *)
%o A030107 (PARI) a(n,b=8)=subst(Polrev(base(n,b)),x,b) /* where */
%o A030107 base(n,b)={my(a=[n%b]);while(n\=b,a=concat(n%b,a));a}  \\ _M. F. Hasler_, Nov 04 2011
%Y A030107 Cf. A030101 - A030108, A004086, A055956, A319725.
%K A030107 nonn,base,look
%O A030107 0,3
%A A030107 _David W. Wilson_