login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A058084 Smallest m such that binomial(m,k) = n for some k. 4
0, 2, 3, 4, 5, 4, 7, 8, 9, 5, 11, 12, 13, 14, 6, 16, 17, 18, 19, 6, 7, 22, 23, 24, 25, 26, 27, 8, 29, 30, 31, 32, 33, 34, 7, 9, 37, 38, 39, 40, 41, 42, 43, 44, 10, 46, 47, 48, 49, 50, 51, 52, 53, 54, 11, 8, 57, 58, 59, 60, 61, 62, 63, 64, 65, 12, 67, 68, 69, 8, 71, 72, 73, 74, 75, 76 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

Index of first row of Pascal's triangle (A007318) containing n.

a(A006987(n)) < A006987(n); a(A137905(n)) = A137905(n). [From Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Mar 20 2009]

LINKS

T. D. Noe, Table of n, a(n) for n=1..1000

EXAMPLE

a(28)=8 because 28 is first found in row 8 of Pascal's triangle (where the first row is counted as 0).

MAPLE

with(combinat): for n from 2 to 150 do flag := 0: for m from 1 to 150 do for k from 1 to m do if binomial(m, k) = n then printf(`%d, `, m); flag := 1; break fi: od: if flag=1 then break fi; od: od:

MATHEMATICA

nmax = 76; t = Table[Binomial[m, k], {m, 0, nmax}, {k, 0, m}]; a[n_] := Position[t, n, 2, 1][[1, 1]]-1; Table[a[n], {n, 1, nmax}](* From Jean-François Alcover, Nov 30 2011 *)

PROG

(Haskell)

import Data.List (findIndex)

import Data.Maybe (fromJust)

a058084 n = fromJust $ findIndex (elem n) a007318_tabl

-- Reinhard Zumkeller, Nov 09 2011

CROSSREFS

Sequence in context: A068794 A130065 A079881 * A074882 A079867 A079869

Adjacent sequences:  A058081 A058082 A058083 * A058085 A058086 A058087

KEYWORD

nice,nonn,easy

AUTHOR

Fabian Rothelius (fabian.rothelius(AT)telia.com), Nov 25 2000

EXTENSIONS

More terms from James A. Sellers (sellersj(AT)math.psu.edu), Nov 27 2000

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 08:45 EST 2012. Contains 205736 sequences.