login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A261970 Numbers whose base-b expansions, for both b=3 and b=4, include no digits other than 0 and b-1. 3
0, 60, 240, 13308, 52992, 53052, 53196, 3195132, 3208140, 3346188, 12795648, 12795900, 871563264, 871563312, 871563456, 871576368, 871576380, 871576524, 871615728, 871616268, 871616448, 1072939776, 1072939788, 1072939824, 3225157884, 3472949196, 3473670912 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
60 is 2020 in base 3 and 330 in base 4; it uses the largest digits in the two bases (including 0's) and is therefore a term.
Similarly 240 is 22220 in base 3 and 3300 in base 4 so it is also a term.
PROG
(PARI) isokb(n, b) = {if (!n, return (1)); my(d = digits(n, b)); (#vecsort(d, , 8)==2) && (vecmin(d) == 0) && (vecmax(d) == b - 1); }
isok(n) = isokb(n, 3) && isokb(n, 4); \\ Michel Marcus, Sep 22 2015
CROSSREFS
Sequence in context: A140873 A263225 A019285 * A206144 A008428 A206232
KEYWORD
nonn,base
AUTHOR
Robin Powell, Sep 21 2015
EXTENSIONS
More terms from Alois P. Heinz, Sep 21 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 15:20 EDT 2024. Contains 371916 sequences. (Running on oeis4.)