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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A184827 a(n) = largest k such that A000959(n+1) = A000959(n) + (A000959(n) mod k), or 0 if no such k exists. 3
0, 0, 5, 5, 11, 9, 17, 19, 29, 29, 31, 37, 47, 39, 59, 65, 65, 71, 71, 71, 81, 87, 93, 99, 107, 103, 125, 125, 131, 129, 131, 143, 155, 157, 167, 153, 185, 191, 189, 197, 199, 203, 215, 215, 227, 233, 233, 223, 257, 255, 261, 263 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

COMMENTS

From the definition, a(n) = A000959(n) - A031883(n) if A000959(n) - A031883(n) > A031883(n), 0 otherwise where A000959 are the lucky numbers and A031883 are the gaps between lucky numbers.

LINKS

Rémi Eismann, Table of n, a(n) for n = 1..10000

EXAMPLE

For n = 1 we have A000959(1) = 1, A000959(2) = 3; there is no k such that 3 - 1 = 2 = (1 mod k), hence a(1) = 0.

For n = 3 we have A000959(3) = 7, A000959(4) = 9; 5 is the largest k such that 9 - 7 = 2 = (7 mod k), hence a(3) = 5; a(3) = 7 -2 = 5.

For n = 24 we have A000959(24) = 105, A000959(25) = 111; 99 is the largest k such that 111 - 105 = 6 = (105 mod k), hence a(24) = 99; a(24) = 105 - 6 = 99.

CROSSREFS

Cf. A000959, A031883, A130889, A184828, A117078, A117563, A001223, A118534.

Sequence in context: A204902 A151728 A130889 * A058610 A143427 A239355

Adjacent sequences:  A184824 A184825 A184826 * A184828 A184829 A184830

KEYWORD

nonn,easy

AUTHOR

Rémi Eismann, Jan 23 2011

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified March 26 06:49 EDT 2017. Contains 284111 sequences.