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.

A255829 a(n) = n for n < 9; a(9n) = a(n); if every 9th term (a(9), a(18), a(27),...) is deleted, this gives back the original sequence.

This page as a plain text file.
%I A255829 #7 Mar 12 2015 22:38:28
%S A255829 1,2,3,4,5,6,7,8,1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,3,1,2,3,1,2,3,1,
%T A255829 2,4,3,1,2,4,3,1,2,4,5,3,1,2,4,5,3,1,2,6,4,5,3,1,2,6,4,5,7,3,1,2,6,4,
%U A255829 5,7,3,8,1,2,6,4,5,7,3,8,1,1,2,6,4,5,7,3,8,1,1,1,2,6,4,5,7,3,1,8
%N A255829 a(n) = n for n < 9; a(9n) = a(n); if every 9th term (a(9), a(18), a(27),...) is deleted, this gives back the original sequence.
%C A255829 A self-generating sequence. This is the m=9 analog of the m=10 variant A126616. Sequence A117943 is the m=3 analog with all terms decreased by 1.
%F A255829 a(n) = a(n/9) if n==0 (mod 9); a(n) = a(n - floor(n/9)) otherwise.
%o A255829 (PARI) a(n, m=9)=while(n>=m, if(n%m, n-=n\m, n\=m)); n \\ _M. F. Hasler_, Mar 07 2015
%Y A255829 Cf. A117943, A255824 - A255828, A126616.
%K A255829 nonn
%O A255829 1,2
%A A255829 _M. F. Hasler_, Mar 07 2015