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.

A270028 a(n) is the smallest b >= 3 for which the base-b representation of n contains at least one 1 (or 0 if no such base exists).

This page as a plain text file.
%I A270028 #22 Jun 29 2019 01:46:23
%S A270028 3,0,3,3,3,4,3,5,3,3,3,3,3,3,3,3,3,4,3,4,3,3,3,4,3,4,3,3,3,3,3,3,3,3,
%T A270028 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,3,5,3,3,3,6,3,6,3,3,3,3,3,3,
%U A270028 3,3,3,4,3,4,3,3,3,4,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
%N A270028 a(n) is the smallest b >= 3 for which the base-b representation of n contains at least one 1 (or 0 if no such base exists).
%C A270028 If we drop the b >= 3 requirement, then this sequence becomes A007395 (the constant 2 sequence).
%C A270028 a(n) > 0 for n >= 3 since the base-(n-1) representation of n is 11.
%C A270028 a(n)=3 if and only if n is in A081606.
%C A270028 The only perfect k-th powers (k >= 2) that can appear in this sequence are 2^k with k a prime number.
%C A270028 The first n for which a(n)=7 is 560.
%C A270028 The first n for which a(n)=8 is 870899850.
%C A270028 The first n for which a(n)=10 is 871017138.
%C A270028 The first n for which a(n)=11 is 65473886952.
%C A270028 The first n for which a(n)=12 is 65473886954.
%H A270028 Nathan Fox, <a href="/A270028/b270028.txt">Table of n, a(n) for n = 1..10000</a>
%t A270028 Table[SelectFirst[Range[3, 10], DigitCount[n, #, 1] > 0 &], {n, 3, 120}] (* _Michael De Vlieger_, Mar 10 2016, Version 10 *)
%o A270028 (PARI) a(n) = if (n==2, 0, my(b=3); while(!vecsearch(Set(digits(n, b)), 1), b++); b); \\ _Michel Marcus_, Mar 10 2016
%Y A270028 Cf. A270027, A216194, A270029, A270030, A270031, A270033, A270034, A270035, A270038.
%K A270028 nonn,base
%O A270028 1,1
%A A270028 _Nathan Fox_, Mar 08 2016