(Translated by https://www.hiragana.jp/)
The On-Line Encyclopedia of Integer Sequences (OEIS)
login

Revision History for A088323

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Number of numbers b>1 such that n is a repunit in base b representation.
(history; published version)
#7 by Reinhard Zumkeller at Wed Jan 22 16:39:53 EST 2014
STATUS

editing

approved

#6 by Reinhard Zumkeller at Wed Jan 22 16:06:33 EST 2014
COMMENTS

a(A119598(n)) > 3; a(A053696(n)) > 2; a(A085104(n)) > 2. - Reinhard Zumkeller, Jan 22 2014

FORMULA

A010051(a(n)) * A088323(a(n)) > 1. - Reinhard Zumkeller, Jan 22 2014

EXAMPLE

a(31)=3: 31 = 2^4+2^3+2^2+2^1+2^0 = 35^32+35^1+35^0 = 30^1+30^0.

PROG

a085104 a088323 n = a085104_list !! sum $ map (f n) [2 .. n-1)] where

a085104_list = filter ((> 1) . a088323) a000040_list

f x b = if x == 0 then 1 else if d /= 1 then 0 else f x' b

where (x', d) = divMod x b

EXTENSIONS

Example corrected by Reinhard Zumkeller, Jan 22 2014

#5 by Reinhard Zumkeller at Wed Jan 22 16:02:41 EST 2014
LINKS

Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Repunit.html">Repunit</a>

Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Repunit.html">Repunit</a>

FORMULA

A010051(a(n)) * A088323(a(n)) > 1. - Reinhard Zumkeller, Jan 22 2014

PROG

(Haskell)

a085104 n = a085104_list !! (n-1)

a085104_list = filter ((> 1) . a088323) a000040_list

-- Reinhard Zumkeller, Jan 22 2014

#4 by Reinhard Zumkeller at Wed Jan 22 16:01:14 EST 2014
LINKS

Reinhard Zumkeller, <a href="/A088323/b088323.txt">Table of n, a(n) for n = 2..10000</a>

STATUS

approved

editing

#3 by Russ Cox at Fri Mar 30 18:50:38 EDT 2012
AUTHOR

_Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), _, Nov 06 2003

Discussion
Fri Mar 30
18:50
OEIS Server: https://oeis.org/edit/global/246
#2 by N. J. A. Sloane at Fri Jan 09 03:00:00 EST 2009
KEYWORD

nonn,base,new

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)lhsystemsgmail.com), Nov 06 2003

#1 by N. J. A. Sloane at Thu Feb 19 03:00:00 EST 2004
NAME

Number of numbers b>1 such that n is a repunit in base b representation.

DATA

0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1

OFFSET

2,6

COMMENTS

is a(n) < 4 ?;

n>2: a(n) > 0 as n = (n-1)^1 + (n-1)^0.

LINKS

Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Repunit.html">Repunit</a>

EXAMPLE

a(31)=3: 31 = 2^4+2^3+2^2+2^1+2^0 = 3^3+3^1+3^0 = 30^1+30^0.

CROSSREFS
KEYWORD

nonn,base

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)lhsystems.com), Nov 06 2003

STATUS

approved