[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
Revision History for A109942 (Underlined text is an addition; strikethrough text is a deletion.)

Showing all changes.
A109942 Largest k-digit number coprime to n, where k is the number of digits in n.
(history; published version)
#7 by N. J. A. Sloane at Mon Jan 30 21:46:38 EST 2017
STATUS

proposed

approved

#6 by Robert Israel at Mon Jan 30 19:06:19 EST 2017
STATUS

editing

proposed

#5 by Robert Israel at Mon Jan 30 19:06:01 EST 2017
LINKS

Robert Israel, <a href="/A109942/b109942.txt">Table of n, a(n) for n = 1..10000</a>

FORMULA

a(n) >= n+1 unless n is in A002283, in which case a(n)=n-1. - Robert Israel, Jan 30 2017

MAPLE

f:= proc(n) local k;

for k from 10^(1+ilog10(n))-1 by -1 do

if igcd(n, k) = 1 then return k fi

od

end proc:

map(f, [$1..100]); # Robert Israel, Jan 30 2017

STATUS

approved

editing

#4 by N. J. A. Sloane at Thu Dec 05 19:57:01 EST 2013
AUTHOR

_Amarnath Murthy (amarnath_murthy(AT)yahoo.com), _, Jul 19 2005

Discussion
Thu Dec 05 19:57
OEIS Server: https://oeis.org/edit/global/2075
#3 by Russ Cox at Sat Mar 31 13:20:57 EDT 2012
EXTENSIONS

More terms from _David Wasserman (wasserma(AT)spawar.navy.mil), _, Jul 19 2005

Discussion
Sat Mar 31 13:20
OEIS Server: https://oeis.org/edit/global/880
#2 by N. J. A. Sloane at Wed Sep 21 03:00:00 EDT 2005
DATA

9, 9, 8, 9, 9, 7, 9, 9, 8, 99, 98, 97, 99, 99, 98, 99, 99, 97, 99, 99, 97, 97, 99, 97, 99, 99, 98, 99, 99, 97, 99, 99, 98, 99, 99, 97, 99, 99, 98, 99, 99, 97, 99, 97, 98, 99, 99, 97, 99, 99, 98, 99, 99, 97, 98, 99, 98, 99, 99, 97, 99, 99, 97, 99, 99, 97, 99, 99, 98, 99, 99, 97

KEYWORD

base,easy,nonn,new

EXTENSIONS

More terms from David Wasserman (wasserma(AT)spawar.navy.mil), Jul 19 2005

#1 by N. J. A. Sloane at Tue Jul 19 03:00:00 EDT 2005
NAME

Largest k-digit number coprime to n, where k is the number of digits in n.

DATA

9, 9, 8, 9, 9, 7, 9, 9, 8, 99, 98, 97, 99, 99, 98, 99, 99, 97, 99, 99, 97, 97, 99, 97, 99, 97, 99, 99, 98, 99, 99, 97, 99, 97, 98, 99, 99, 97, 99, 99, 98, 99

OFFSET

1,1

KEYWORD

base,easy,nonn,new

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Jul 19 2005

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 29 23:34 EDT 2024. Contains 375520 sequences. (Running on oeis4.)