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.

A255828 a(n) = n for n < 8; a(8n) = a(n); if every 8th term (a(8), a(16), a(24),...) is deleted, this gives back the original sequence.

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