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.

A206714 Number of solutions (n,k) of s(k)=s(n) (mod n), where 1<=k and s(k)=2^(k-1).

This page as a plain text file.
%I A206714 #5 Mar 30 2012 18:58:12
%S A206714 0,1,1,1,2,2,4,1,2,1,4,1,4,3,11,2,2,1,4,3,2,2,10,1,2,1,8,1,7,6,26,3,4,
%T A206714 2,5,1,2,3,9,2,6,3,4,3,4,2,21,2,2,6,4,1,2,2,17,3,2,1,14,1,12,10,57,5,
%U A206714 6,1,8,3,5,2,11,8,2,3,4,2,6,2,18,1,4,1,13,10,6,3,8,8,7,7,8,9,4
%N A206714 Number of solutions (n,k) of s(k)=s(n) (mod n), where 1<=k<n and s(k)=2^(k-1).
%e A206714 2^6=64; the numbers 64-s(j) are 63,62,60,56,48,32, of which two are multiples of 6, so that a(6)=2.
%t A206714 s[k_] := 2^(k - 1);
%t A206714 f[n_, k_] := If[Mod[s[n] - s[k], n] == 0, 1, 0];
%t A206714 t[n_] := Flatten[Table[f[n, k], {k, 1, n - 1}]]
%t A206714 a[n_] := Count[Flatten[t[n]], 1]
%t A206714 Table[a[n], {n, 2, 120}] (* A206714 *)
%K A206714 nonn
%O A206714 2,5
%A A206714 _Clark Kimberling_, Feb 11 2012