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 A218126 #17 Apr 15 2021 13:11:52 %S A218126 1,9,72,720,6480,59040,530640,4782960,43040160,387419760,3486725280, %T A218126 31381059600,282428998560,2541865828320,22876787671920, %U A218126 205891132034880,1853020145805120,16677181699666560,150094634909047920,1350851717672992080,12157665455570137920 %N A218126 Number of 9-ary sequences with primitive period n. %H A218126 Seiichi Manyama, <a href="/A218126/b218126.txt">Table of n, a(n) for n = 0..1047</a> (terms 0..350 from Alois P. Heinz) %F A218126 a(n) = Sum_{d|n} 9^d * mu(n/d) for n>0, a(0) = 1. %F A218126 G.f.: 1 + 9 * Sum_{k>=1} mu(k) * x^k / (1 - 9*x^k). - _Ilya Gutkovskiy_, Apr 15 2021 %p A218126 with(numtheory): %p A218126 a:= n-> `if`(n=0, 1, add(9^d*mobius(n/d), d=divisors(n))): %p A218126 seq(a(n), n=0..30); %o A218126 (PARI) a(n) = if (n==0, 1, sumdiv(n, d, 9^d*moebius(n/d))); \\ _Michel Marcus_, Apr 15 2021 %Y A218126 Column k=9 of A143324. %K A218126 nonn %O A218126 0,2 %A A218126 _Alois P. Heinz_, Oct 21 2012