Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A099490
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A099490 Least k such that the interval [n,k] contains a subset of integers whose product is twice a square. +0
1
2, 2, 6, 8, 8, 8, 8, 8, 15, 15, 18, 18, 18, 18, 18, 18, 18, 18, 27, 27, 27, 27, 27, 27, 32, 32, 32, 32, 32, 32, 32, 32, 45, 45, 45, 45, 45, 45, 45, 45, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 63, 63, 63, 63, 63, 63, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72 (list; graph; listen)
OFFSET

1,1

LINKS

Andrew Granville and John Selfridge, Product of integers in an interval, modulo squares (pdf), Electronic Journal of Combinatorics, Volume 8(1), 2001.

EXAMPLE

a(9) = 15 because the interval [9,15] contains the subset {10,12,15} whose product is 2*30^2 and no shorter interval starting with 9 has such a subset.

MATHEMATICA

Needs["DiscreteMath`Combinatorica`"]; Table[If[n==1, n1=2, n1=n]; found=False; While[ !found, lst=Range[n, n1]; x=Times@@lst; {p, e}=Transpose[FactorInteger[x]]; Do[If[e[[i]]==1 && p[[i]]!=2, lst=DeleteCases[lst, _?(Mod[ #, p[[i]]]==0&)]], {i, Length[p]}]; i=1; While[i<2^Length[lst] && !found, ss=NthSubset[i, lst]; x=Times@@ss; If[Mod[x, 2]==0 && IntegerQ[Sqrt[x/2]], found=True (*; Print[{n, ss}]*)]; i++ ]; If[ !found, n1++ ]]; n1, {n, 100}]

CROSSREFS

Cf. A099500, A099501.

Sequence in context: A116542 A142243 A091441 this_sequence A033724 A033748 A033736

Adjacent sequences: A099487 A099488 A099489 this_sequence A099491 A099492 A099493

KEYWORD

nonn

AUTHOR

T. D. Noe (noe(AT)sspectra.com), Oct 19 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research