OFFSET
0,1
COMMENTS
Also, a(n) is the largest integer m such that binomial(m,2) <= 3^n.
a(n) gives a theoretical upper bound for the number of coins such that two fake coins (of equal weight lighter than the other coins) among them can be identified in n weightings on a balance scale. It was shown that the bound is achievable for all n<=10, but it remains an open question if the bound is achievable for n>10.
A000217(a(n)) - 3^n = 1 for n = 2 and n = 3. - Altug Alkan, Dec 30 2015
LINKS
I. Bosnjak and R.Tosic, Some new results concerning two counterfeit coins, Novi Sad Journal of Mathematics 22:1 (1992), 133-140.
T. Khovanova, Two Fake Coins, 2015.
K. A. Knop and O. B. Polubasov, Two counterfeit coins revisited, 2015. (in Russian)
A. Li, On the conjecture at two counterfeit coins, Discrete Mathematics 133:1-3 (1994), 301-306.
PROG
(PARI) a(n) = round( sqrt(2*3^n+1/4) );
(Python)
from math import isqrt
def A266498(n): return isqrt(3**n+1<<3)+1>>1 # Chai Wah Wu, Jun 18 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Max Alekseyev, Dec 30 2015
STATUS
approved
