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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A078180 a(n) = smallest integer that can't be written as p*a(i)+1, for any prime p and 0<i<n, where a(1)=1 and a(n) > a(n-1). 1
1, 2, 9, 10, 13, 16, 17, 22, 25, 26, 29, 34, 36, 37, 41, 43, 50, 55, 56, 57, 58, 61, 65, 70, 77, 78, 82, 85, 89, 91, 93, 94, 96, 97, 99, 105, 106, 116, 121, 122, 125, 127, 129, 133, 134, 136, 137, 139, 142, 145, 148, 149, 153, 156, 160, 161, 162, 163, 173 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

a(n) seems to be asymptotic to c*n where 2.5<c<3.

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 1..10000

MATHEMATICA

canBeWritten[an_, n_, ai_] := Resolve[ Exists[ p, Reduce[ an == p*ai + 1, p, Primes]]]; canBeWritten[an_, n_] := Or @@ (canBeWritten[an, n, #] & ) /@ Table[a[i], {i, 1, n-1}]; a[1] = 1; a[n_] := a[n] = (an = a[n-1]+1; While[ canBeWritten[an, n], an++]; an); Table[a[n], {n, 1, 50}] (* From Jean-François Alcover, Jan 11 2012 *)

PROG

(Haskell)

a078180 n = a078180_list !! (n-1)

a078180_list = 1 : f 1 1 where

   f x k = y : f y (k+1) where

     y = head [z | z <- [x+1..], all (q z) $ take k a078180_list]

     q u v = m > 0 || a010051 u' == 0 where (u', m) = divMod (u-1) v

-- Reinhard Zumkeller, Jan 09 2012

CROSSREFS

Sequence in context: A037314 A031443 A051017 * A058890 A047468 A032929

Adjacent sequences:  A078177 A078178 A078179 * A078181 A078182 A078183

KEYWORD

nice,nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr) and Paul D. Hanna (pauldhanna(AT)juno.com), Nov 20 2002

EXTENSIONS

80 = 79*1+1 removed by Jean-François Alcover, Jan 11 2012

90 = 89*1+1 replaced by missing 89 by Reinhard Zumkeller, Jan 11 2012

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 17 02:48 EST 2012. Contains 205978 sequences.